FacebookTwitter
Hatrack River Forum   
my profile login | search | faq | forum home

  next oldest topic   next newest topic
» Hatrack River Forum » Active Forums » Books, Films, Food and Culture » HTML Question!

   
Author Topic: HTML Question!
A Rat Named Dog
Member
Member # 699

 - posted      Profile for A Rat Named Dog   Email A Rat Named Dog         Edit/Delete Post 
Hey, how do I set up an image so that when you hover over it with your mouse, it switches to a different image? Can that be done in raw HTML, or does it require something extra?
Posts: 1907 | Registered: Feb 2000  |  IP: Logged | Report this post to a Moderator
Hobbes
Member
Member # 433

 - posted      Profile for Hobbes   Email Hobbes         Edit/Delete Post 
On believe you use the "onmouseover" command but it's been a long time sicne I did any decent raw html.

Hobbes [Smile]

Posts: 10602 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
jeniwren
Member
Member # 2002

 - posted      Profile for jeniwren   Email jeniwren         Edit/Delete Post 
I thought onmouseover (or whatever it is) was javascript. I haven't touched either in too long to remember.
Posts: 5948 | Registered: Jun 2001  |  IP: Logged | Report this post to a Moderator
A Rat Named Dog
Member
Member # 699

 - posted      Profile for A Rat Named Dog   Email A Rat Named Dog         Edit/Delete Post 
It is javascript, but I managed to make it work: www.geoffreycard.com ...

Now, I think my only problem is the size of the images. They're like 5K each, and it takes a second to switch when you mouseover them. (I've only done the top link so far.)

Posts: 1907 | Registered: Feb 2000  |  IP: Logged | Report this post to a Moderator
SoberTillNoon
Member
Member # 6170

 - posted      Profile for SoberTillNoon   Email SoberTillNoon         Edit/Delete Post 
The effect is called a rollover.

That is a very nice site there. I like how you used the rollover effect.

[ April 03, 2004, 08:31 PM: Message edited by: SoberTillNoon ]

Posts: 262 | Registered: Feb 2004  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
What you need to use is called a preload script, so the rollover images are already downloaded when you need them.

Just google for preload script and take your pic.

Also, you may find it useful to generate rollovers and such using software like Adobe's ImageReady (companion software to photoshop). It generates javascript code for you.

Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
Chris Bridges
Member
Member # 1138

 - posted      Profile for Chris Bridges   Email Chris Bridges         Edit/Delete Post 
Geoff, are these your final versions of the images? Your rollovers aren't coming up 5k, they're more like 10 - 17k each, which might be why they're taking so long to come up.

I grabbed some of your images and scrunched 'em down to about half the sizes: http://www.chrisbridges.com/temp

[ April 03, 2004, 08:25 PM: Message edited by: Chris Bridges ]

Posts: 7790 | Registered: Aug 2000  |  IP: Logged | Report this post to a Moderator
MoonRabbit
Member
Member # 3652

 - posted      Profile for MoonRabbit   Email MoonRabbit         Edit/Delete Post 
Email me (profile email) and I'll send you your html page with the preloader installed.
Posts: 173 | Registered: Jun 2002  |  IP: Logged | Report this post to a Moderator
vwiggin
Member
Member # 926

 - posted      Profile for vwiggin   Email vwiggin         Edit/Delete Post 
Ha! Card Catalog. That's great. [Smile]
Posts: 1592 | Registered: May 2000  |  IP: Logged | Report this post to a Moderator
A Rat Named Dog
Member
Member # 699

 - posted      Profile for A Rat Named Dog   Email A Rat Named Dog         Edit/Delete Post 
Hey, come on, guys, I can't learn anything if you do all the work for me! [Smile]

And holy crap, I'd be in big trouble by now if I didn't know how to compress a JPEG [Smile] I'm just sticking to the bigger files while I'm still working on them ... to ensure the finest quality and all.

Posts: 1907 | Registered: Feb 2000  |  IP: Logged | Report this post to a Moderator
sarcasticmuppet
Member
Member # 5035

 - posted      Profile for sarcasticmuppet   Email sarcasticmuppet         Edit/Delete Post 
quote:
Ha! Card Catalog. That's great. [Smile]
[ROFL]
Posts: 4089 | Registered: Apr 2003  |  IP: Logged | Report this post to a Moderator
Jon Boy
Member
Member # 4284

 - posted      Profile for Jon Boy           Edit/Delete Post 
Geoff, I believe that if you look at the finished code with the preloader, you should be able to reverse-engineer it and make your own.
Posts: 9945 | Registered: Sep 2002  |  IP: Logged | Report this post to a Moderator
   

   Close Topic   Feature Topic   Move Topic   Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:


Contact Us | Hatrack River Home Page

Copyright © 2008 Hatrack River Enterprises Inc. All rights reserved.
Reproduction in whole or in part without permission is prohibited.


Powered by Infopop Corporation
UBB.classic™ 6.7.2