This is a discussion on "Image Rollovers" within the JavaScript Forum section. This forum, and the thread "Image Rollovers are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Image Rollovers
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Image Rollovers
Well, I just started venturing into JavaScript. Now that I'm halfway through the book [JavaScript Bible 5th Ed.] I decided to try to do some stuff. But like always - my scripts are not working. Here is the code in my rollover.js file
Thanks, DDock Last edited by DDock3287; Aug 1st, 2007 at 16:38. |
|
|
|
||||
|
Re: Image Rollovers
Going by your description above, shouldnt the include of the javascript read:-
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
||||
|
Re: Image Rollovers
... I presume the file is referenced properly but you mentioned rollover.js as the filename.
Try changing the image alt text to all lower case.... javascript is CaSe SeNsItIvE
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
||||
|
Re: Image Rollovers
|
|
|||
|
Re: Image Rollovers
Have to agree that CSS would be best. The best rollover technique in my opinion is this:
http://www.alistapart.com/articles/slidingdoors2/ |
|
||||
|
Re: Image Rollovers
|
|
|||
|
Re: Image Rollovers
Quote:
Ok I looked at the CSS Rollover Images. Would it be easy to put an animated GIF as the secondary. It would seem I would have to have both as an animated GIF for it to work. Wouldn't that end up making the file size a bit larger? Essentially the rollover image will be the same as the first one, but the "shield" on the button will be sparkling. Last edited by DDock3287; Aug 1st, 2007 at 16:44. |
|
|||
|
Re: Image Rollovers
The Second image I want to be an animated Gif. Sorry if I was unclear.
|
|
||||
|
Re: Image Rollovers
Ok well ... that doesn't matter ... you just add it the same way!? The non-animated on top and the animated at the bottom.
|
|
|||
|
Re: Image Rollovers
Karinne, Just to let you know, the first site you linked is now closed. Just wanted to let you know.
|
|
||||
|
Re: Image Rollovers
Yeah ... I know ... it's my blog! I closed it down
|
|
|||
|
Re: Image Rollovers
I agree with everyone else but I'll take a shot in the dark here. Does the book have it listed with the word this in front of the argument in the onmouseover and onmouseout event?
It seems to me that the script may need to know what object the function is referring to. Just a guess from having a quick glance at the script. Also your book should have a website with all the scripts available for download. You can DL it and check it against yours. Good Luck, Scott |
|
|||
|
Re: Image Rollovers
Thanks for everyone that assisted me. I have successfully implemented the CSS rollovers.
|
![]() |
| Tags |
| image rollover preloading |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Image Rollovers and CMS | Raid | JavaScript Forum | 8 | Oct 25th, 2007 07:50 |
| Hyperlink Rollovers | crackafaza | Web Page Design | 3 | Aug 24th, 2007 11:43 |
| Image Rollovers | DDock3287 | Web Page Design | 12 | Aug 14th, 2007 21:23 |
| faded rollovers | benbramz | Graphics and 3D | 7 | Aug 30th, 2005 15:28 |
| ImageReady rollovers | gwx03 | Graphics and 3D | 9 | Jul 6th, 2004 07:48 |