12 replies [Last post]
OPTAdmin
Offline
Enthusiast
Dover, OH -- Soon to be Columbus, OH
Last seen: 18 years 2 weeks ago
Dover, OH -- Soon to be Columbus, OH
Joined: 2004-07-27
Posts: 108
Points: 0

Okay, I've got an idea, let's go with it folks.

I want to create either a pop-up menu (ex: the Jump To box at the bottom of the page here), or just a list of links that, when clicked, "pop up" a schedule of the team that was clicked instantaneously. Is this possible/feasible? There are only 16 teams, so it shouldn't be too large. Any ideas out there, oh CSS Forum gods?

I am going to be attending The Ohio State University this fall as an incoming freshman, majoring in Computer Science and Engineering.

Go Bucks!

Tags:
OPTAdmin
Offline
Enthusiast
Dover, OH -- Soon to be Columbus, OH
Last seen: 18 years 2 weeks ago
Dover, OH -- Soon to be Columbus, OH
Joined: 2004-07-27
Posts: 108
Points: 0

CSS/PHP/Javascript onClick Menu

Tough question, eh?

I am going to be attending The Ohio State University this fall as an incoming freshman, majoring in Computer Science and Engineering.

Go Bucks!

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 2 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

CSS/PHP/Javascript onClick Menu

Hi OPTAdmin,
It sounds feasible.
But there are a few things that are unclear from your post.
How are the schedules stored, are they separate pages or database driven?
What do you mean by popup, separate window or displayed on the same page?

OPTAdmin
Offline
Enthusiast
Dover, OH -- Soon to be Columbus, OH
Last seen: 18 years 2 weeks ago
Dover, OH -- Soon to be Columbus, OH
Joined: 2004-07-27
Posts: 108
Points: 0

CSS/PHP/Javascript onClick Menu

I knew there would be problems with my wording. I suck at that.

I'm not sure how I would do it in a database, exactly, so I'm thinking about putting it on a new page for now. Would a database probably be easier? I have 2 more mySQL databases to play with.

I want them to load on the current page, as well.

I am going to be attending The Ohio State University this fall as an incoming freshman, majoring in Computer Science and Engineering.

Go Bucks!

OPTAdmin
Offline
Enthusiast
Dover, OH -- Soon to be Columbus, OH
Last seen: 18 years 2 weeks ago
Dover, OH -- Soon to be Columbus, OH
Joined: 2004-07-27
Posts: 108
Points: 0

CSS/PHP/Javascript onClick Menu

By the way, does CSS Creator/Forum have any little banners that I could possibly put on my page, so I can direct users toward this wonderful page? Something with about 180-ish px width.

I am going to be attending The Ohio State University this fall as an incoming freshman, majoring in Computer Science and Engineering.

Go Bucks!

rmfred
rmfred's picture
Offline
Elder
Rock Springs, WY
Last seen: 3 years 43 weeks ago
Rock Springs, WY
Timezone: GMT-6
Joined: 2004-01-31
Posts: 1073
Points: 31

CSS/PHP/Javascript onClick Menu

OPTAdmin... sorry but I am still a little confused on exactly what you want Sad
On an old site of mine I did something similar
http://www.tcsnd.org/athletics/athletics.asp and click either Boys or Girls Basketball...
Is this something like what you are wanting to do? This was accomplished using a little javascript popup script and a database.

If you don't want a "popup window" but want to load on the same page you could try something like this...
http://www.tcsnd.org/faq.asp
this also using a little javascript and a database

OPTAdmin
Offline
Enthusiast
Dover, OH -- Soon to be Columbus, OH
Last seen: 18 years 2 weeks ago
Dover, OH -- Soon to be Columbus, OH
Joined: 2004-07-27
Posts: 108
Points: 0

CSS/PHP/Javascript onClick Menu

rmfred,

Thanks! The second one is actually exactly what I'm looking for. I guess I can do it with just a list of teams, and, on mouse click, it will throw the schedule out there instantly, while on the same page. Before I check the script, is it possible to position the code? I'll probably post on here in about 5 minutes and realize that it is, so thanks again!

I am going to be attending The Ohio State University this fall as an incoming freshman, majoring in Computer Science and Engineering.

Go Bucks!

rmfred
rmfred's picture
Offline
Elder
Rock Springs, WY
Last seen: 3 years 43 weeks ago
Rock Springs, WY
Timezone: GMT-6
Joined: 2004-01-31
Posts: 1073
Points: 31

CSS/PHP/Javascript onClick Menu

OPTAdmin..
Glad that it might work for you...not sure what you mean by position the code... but you should be able to put this wherever want...
the reason for using a DB is that it keeps your page code much shorter... if you don't use a DB you'll have to hard code all 16 teams and there schedules into the page which would make for a pretty large page size

OPTAdmin
Offline
Enthusiast
Dover, OH -- Soon to be Columbus, OH
Last seen: 18 years 2 weeks ago
Dover, OH -- Soon to be Columbus, OH
Joined: 2004-07-27
Posts: 108
Points: 0

CSS/PHP/Javascript onClick Menu

rmfred,

That's what I was thinking about using the database. Mind if I just use your code as a reference and work from there?

I am going to be attending The Ohio State University this fall as an incoming freshman, majoring in Computer Science and Engineering.

Go Bucks!

rmfred
rmfred's picture
Offline
Elder
Rock Springs, WY
Last seen: 3 years 43 weeks ago
Rock Springs, WY
Timezone: GMT-6
Joined: 2004-01-31
Posts: 1073
Points: 31

CSS/PHP/Javascript onClick Menu

Feel free to use the code... I used it from someone else LOL

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 2 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

CSS/PHP/Javascript onClick Menu

Hi OPTAdmin,
Glad it seems to be coming together.
Here's a link with images you can use to link to this site.
http://www.csscreator.com/link-to-us.html

Or you can use this one
I will add it to the link to us page soon.

Thanks, every link helps.

OPTAdmin
Offline
Enthusiast
Dover, OH -- Soon to be Columbus, OH
Last seen: 18 years 2 weeks ago
Dover, OH -- Soon to be Columbus, OH
Joined: 2004-07-27
Posts: 108
Points: 0

CSS/PHP/Javascript onClick Menu

Tony,

I've added a link to the homepage (http://www.eastohiosports.com). I'm still working on the database to put all the teams in. It's coming along nicely, though!

I am going to be attending The Ohio State University this fall as an incoming freshman, majoring in Computer Science and Engineering.

Go Bucks!

OPTAdmin
Offline
Enthusiast
Dover, OH -- Soon to be Columbus, OH
Last seen: 18 years 2 weeks ago
Dover, OH -- Soon to be Columbus, OH
Joined: 2004-07-27
Posts: 108
Points: 0

CSS/PHP/Javascript onClick Menu

Just to update everyone...

I've input all the data into the database itself. I've been able to output it all on a PHP file. For now, I'm trying to make it work with my phpBB, so when it goes to schedule.php, you can choose what team you want, and it will load the corresponding schedule. The only problem I've run into is that, with the phpBB, all the display stuff is in a .tpl file, which apparently can't run PHP. I've been asking the people over at phpbb.com for any help with that, and I should figure it out eventually.

Just a little update. Laughing out loud

I am going to be attending The Ohio State University this fall as an incoming freshman, majoring in Computer Science and Engineering.

Go Bucks!