Current location: Hot Scripts Forums » General Web Coding » JavaScript » Javascript Rollover Help


Javascript Rollover Help

Reply
  #1 (permalink)  
Old 03-12-07, 08:33 PM
socalme socalme is offline
New Member
 
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Javascript Rollover Help

Just wanted to see if I can get some help regarding a rollover using javascripts or dreamweaver. I'm a bit of a novice at web development, but know dreamweaver.

I am trying to emulate a rollover like that found on the hp.com website where you roll your mouse over on a tab and the image and links change. Can anyone kindly point me in the right direction in how to accomplish this?

Thanks.

The sample site would be hp.com.

SCM
Reply With Quote
  #2 (permalink)  
Old 03-12-07, 11:23 PM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
That little trick is done with a <table> element, a little CSS and Javascript for the onfocus event.
__________________
Jerry Broughton
Reply With Quote
  #3 (permalink)  
Old 03-13-07, 05:01 PM
jfulton's Avatar
jfulton jfulton is offline
Community VIP
 
Join Date: Apr 2006
Location: Los Angeles, CA
Posts: 660
Thanks: 0
Thanked 0 Times in 0 Posts
If you have a question regarding a specific piece of javascript, or how to go about writing something yourself, post it in this forum. If you are looking for a Rollover script which is already written (there are tons), use the Script Requests forum - let me know if you want this thread moved there.

Otherwise, if you want to write it yourself, start by checking out the onMouseOver event. You can use that event to determine when to switch the image source.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add javascript after load? <?Wille?> JavaScript 14 03-31-06 04:52 AM
Mixing some HTML into some JavaScript thatonedude JavaScript 2 12-30-05 11:04 AM
javascript /forms /checkboxes /arrays ski_woman JavaScript 1 11-16-04 04:08 AM
Order of vbscript and javascript in ASP marlin ASP 0 06-03-04 03:01 PM
Reaaly stuck about javascript over frames muratisik JavaScript 1 12-14-03 11:58 AM


All times are GMT -5. The time now is 11:25 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.