Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
need help with some kind of rollover
Old 10-20-2004, 10:51 PM need help with some kind of rollover
dpakman91's Avatar
Ultra Talker

Posts: 285
Trades: 0
ok, i'm working on somethign for my site, and i need some help.

basically, i have maps of all the elections leading back to 1960. i want to make it so that i can have them all on one page, and have something at the bottom with the year, and when people put the mouse (or even click), that map (gif images) will come up.

i have NO IDEA how to do this. what would the easiest way be?
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
dpakman91 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-20-2004, 10:57 PM
Webmaster Talker

Posts: 589
Trades: 0
I am not completally sure what you want, but I am sure you could solve this by one of 2 methods. First you could have a link that opens a popup, and in that popup have the gif image open up. Now I understand that popups can be extremly irritating even if they are not adveratisments, so the other option is to use flash. I am not to familiar with flash but If you made a flash page this could be easily done. Hope my suggestions help good luck sir!
thevirus is offline
Reply With Quote
View Public Profile
 
Old 10-20-2004, 11:48 PM
techwench's Avatar
Code Monkey

Posts: 1,449
Name: Danalyn
Location: Dallas, TX
Trades: 0
Take a look at the photos on this page:
http://www.dvatalent.com/profile.php?id=125

Is that something like what you want? If so, you can do that fairly easily. Here's what I used on that site:

First, you have to have a main image placeholder. First you have to name that image:

Code:
<IMG NAME="pic" SRC="img_source.jpg">
Then you can change that image on click with document.images in your link. Whether you use an image:

Code:
<A HREF="#" onClick="window.document.images['pic'].src='pic_source1.jpg'; return false;"><IMG SRC="pic_source_thumb1.jpg"></A>
Or, text link:

Code:
<A HREF="#" onClick="window.document.images['pic'].src='pic_source1.jpg'; return false;">Pic 1</A>
Here's what that stuff means:

window. refers to the actual browser window
document. refers to the current document in the window
images refers to the image elements in the document
['pic'] calls the image element you named "pic"
.src refers to the source or src of the image. <IMG SRC>

Of course, this will not work if javascript is turned off...

Hope this helps.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
techwench is offline
Reply With Quote
View Public Profile
 
Old 10-21-2004, 12:06 AM
dpakman91's Avatar
Ultra Talker

Posts: 285
Trades: 0
prissed - that seems good. two questions:

1.how do i make sure javascript is on?

2. is there any way for it to be text people click on to change hte picture rather than thumbnailed pictures?
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
dpakman91 is offline
Reply With Quote
View Public Profile
 
Old 10-21-2004, 09:58 AM
techwench's Avatar
Code Monkey

Posts: 1,449
Name: Danalyn
Location: Dallas, TX
Trades: 0
Javascript is something that is on in the visitor's browser. There's nothing you can do to make sure it's on, really. But most people do have it turned on. Then there are people that have selective javascript turned off (like me), but I still allow images to be changed with javascript.

The last code snippet I posted uses a text link.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
techwench is offline
Reply With Quote
View Public Profile
 
Old 10-21-2004, 04:44 PM
dpakman91's Avatar
Ultra Talker

Posts: 285
Trades: 0
excellent, this worked perfectly. this is what i used it for: http://www.heartheissues.com/pastelections.html

thanks again.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
dpakman91 is offline
Reply With Quote
View Public Profile
 
Old 10-21-2004, 05:01 PM
techwench's Avatar
Code Monkey

Posts: 1,449
Name: Danalyn
Location: Dallas, TX
Trades: 0
Great!

OT: Wow...amazing...the electoral votes for both Nixon's, and Regan's second terms...dang! That's a lot of votes!
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
techwench is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to need help with some kind of rollover
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29510 seconds with 12 queries