Click to See Complete Forum and Search --> : Dumb question, maybe!!


Julie
03-30-2003, 01:30 PM
I built a web site for a friend on Geocities...
I don't know anything about building sites but I got it together finally, almost at least.
I need help on one thing..
I put some rollover links in for the other pages on the main page. I got the buttons from Bravenet.
They work ok for the links but you have to hold the mouse over them for a long time before they change colors. If you click on them before you hold the mouse over them for a long time the button disapears for a second but still takes you to the link.
I was wondering if anybody could tell me how to fix it so it will change colors right away when the mouse is over it and it won't disapear like that.
Please help me, I heard this site is really cool for helping dumb people like me.
The site I built is this one if somebody can look at and tell me how to fix it.
Thanks so much.
http://www.geocities.com/karls_orchids/main.html

pyro
03-30-2003, 01:41 PM
You should preload you images, something like this:

<script language="javascript" type="text/javascript">
imageover1=new Image();
imageover1.src = "mouseover.gif"; //your rollover image
</script>

</head>
<body>

<a href="your.htm" onmouseover="document.firstimage.src=imageover1.src" onmouseout="document.firstimage.src='mouseoff.gif'"><img src="mouseoff.gif" name="firstimage"></a>

starrwriter
03-31-2003, 01:56 AM
[QUOTE]Originally posted by Julie
[B]I built a web site for a friend on Geocities...
I don't know anything about building sites but I got it together finally, almost at least.
I need help on one thing..
I put some rollover links in for the other pages on the main page. I got the buttons from Bravenet.
They work ok for the links but you have to hold the mouse over them for a long time before they change colors. If you click on them before you hold the mouse over them for a long time the button disapears for a second but still takes you to the link.
I was wondering if anybody could tell me how to fix it so it will change colors right away when the mouse is over it and it won't disapear like that.

You need to manually insert an image preload javascript into the head section of your HTML document. Search Google for "image preload script."

You also need to make the text bold so it will show up better against the page background. Add a <b> just before the first letter of the first word.

pyro
03-31-2003, 06:46 AM
Originally posted by starrwriter
Search Google for "image preload script."Did you see my code? :confused:

Julie
04-01-2003, 06:55 PM
I'm still having so much trouble lol...
Thanx to both of you for helping me.
I'm trying to get the preload scripts to work, I have tried a few but I think I'm doing it wrong. Do I put the preload scripts in the head and body of my main html or in the links html?
I know that sounds so dumb that I don't know that but I never built a site before.
Anyhow I'm going to figure it out because now you both told me what I have to do, I just have to learn how to do it.
I'll let you know when I get it.
Thank you both so much. This board is really cool. :)