Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 03-06-2010, 01:56 AM   #1
New Member
 
Join Date: Mar 2010
Posts: 1
Default Rollover effect selecting from random images

Im trying to have a rollover effect that when rolled over, an image changes to a random image from a set of 4 images. i cant for the life of me figure this out. i know its probably something simple but i cant figure it out. Please help.
Thanks
SanDesign is offline   Reply With Quote


Old 03-06-2010, 02:23 PM   #2
New Member
 
egofirm's Avatar
 
Join Date: Mar 2010
Posts: 8
Default

I don't like JavaScript, but probably what you need to do is call a function which onMouseOver would generate a random number, that would in turn be cross-referenced to an array of images, loading that random pic.
__________________
Affordable web design and development: http://www.egofirm.com
egofirm is offline   Reply With Quote
Old 03-09-2010, 03:26 PM   #3
Super Moderator
 
Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,050
Default

Quote:
Originally Posted by egofirm View Post
I don't like JavaScript, but probably what you need to do is call a function which onMouseOver would generate a random number, that would in turn be cross-referenced to an array of images, loading that random pic.
Hit it right on the button. Javascript ftw.
__________________
John Darling
Graphic / Web Designer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
PixelPusher is offline   Reply With Quote
Reply

Tags
hover, image, javascript, random, rollover

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. The time now is 10:55 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.