iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-17-2006, 12:30 PM
beka's Avatar
WebProWorld Member
 
Join Date: Jan 2004
Location: Lancaster, PA USA
Posts: 33
beka RepRank 0
Default Help with javascript...

hello,
the below link will take you to a page i'm still working on...after the thumbnail is clicked and an image is viewed, the client would like the little square thumbnail to remain highlighted, or in the rollover state, so you know which images have been viewed when looking at other images....hope that makes sense....

www.mivillephoto.com/web_wed/wed2.html

thank you so much!!
ASAP would be swell!
Reply With Quote
  #2 (permalink)  
Old 02-17-2006, 06:50 PM
WebProWorld New Member
 
Join Date: Sep 2005
Posts: 3
barbs770 RepRank 0
Default

Hi beka, try changing...

to

Removing onMouseOut="MM_swapImgRestore()" from all your button links should keep the images in the rollover state.
Reply With Quote
  #3 (permalink)  
Old 02-18-2006, 10:33 AM
WebProWorld New Member
 
Join Date: Sep 2005
Posts: 3
barbs770 RepRank 0
Default

After I thought about it, I remembered that you should also change "onMouseOver" to "onClick" so that it only changes when you click on it.

Hope this helps!
Reply With Quote
  #4 (permalink)  
Old 02-18-2006, 11:18 AM
beka's Avatar
WebProWorld Member
 
Join Date: Jan 2004
Location: Lancaster, PA USA
Posts: 33
beka RepRank 0
Default

thanks for your help!
i keep trying and it's just not working...
Quote:
After I thought about it, I remembered that you should also change "onMouseOver" to "onClick" so that it only changes when you click on it.
would i change it to "onMouseClick" or just "onClick"?
Just uploaded...only the first 4 buttons have the the new script..
still not working...:~(
Reply With Quote
  #5 (permalink)  
Old 02-20-2006, 07:04 PM
WebProWorld New Member
 
Join Date: Sep 2005
Posts: 3
barbs770 RepRank 0
Default

onClick should work, but sometimes Javascript needs a little prompting to do what it's told...try adding "true" at the end:

Code:
onClick="MM_swapImage('Image4','','buttns/but1_over.gif',1);true;"
This should make the rollover effect stick. To get the rollover and the onClick to work together you may need to set a boolean variable. For example, when you call onClick set the variable to true. When you do a MouseOut check the variable, if it's true, exit the MouseOut function without doing anything. If the variable is false, continue with the MouseOut function.

I hope that wasn't too confusing. What you want to do is possible...it's just going to take a little more work. :)
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:28 PM.



Search Engine Optimization by vBSEO 3.3.0