Top Mud Sites Forum Return to TopMudSites.com
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD and RPG Webmasters
Click here to Register

Reply
 
Thread Tools
Old 04-20-2002, 09:22 PM   #1
Enzo
Senior Member
 
Join Date: Apr 2002
Location: Seattle, Washington
Posts: 342
Enzo is on a distinguished road
Could someone help me figure out how to do mouse overs?
Enzo is offline   Reply With Quote
Old 04-20-2002, 09:54 PM   #2
Noximist
New Member
 
Join Date: Apr 2002
Location: New Brunswick, Canada
Posts: 27
Noximist is on a distinguished road
Send a message via ICQ to Noximist Send a message via MSN to Noximist
Noximist is offline   Reply With Quote
Old 04-20-2002, 10:15 PM   #3
Astin
Member
 
Join Date: Apr 2002
Location: United States
Posts: 46
Astin is on a distinguished road
Send a message via ICQ to Astin Send a message via AIM to Astin Send a message via Yahoo to Astin
Astin is offline   Reply With Quote
Old 04-20-2002, 10:45 PM   #4
Neranz Laverani
Member
 
Join Date: Apr 2002
Location: The States
Posts: 116
Neranz Laverani is on a distinguished road
Here is an example if you meant changing buttons for when users put their mouse over the button.

The example uses two images: g_homeon.gif and g_homeoff.gif. g_homeoff.gif loads by default on the page and shows whenever the user does not have their browser over the "button." g_homeon.gif shows whenever the user's button is over the image.

[code]

JavaScript;
<script language="JavaScript">
<!--
if (document.images) {
mainon = new Image();
mainon.src = "g_homeon.gif";

mainoff = new Image();
mainoff.src = "g_homeoff.gif";
}

function imgOn(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "on.src");
}
}

function imgOff(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "off.src");
}
}


// -->
</script>

HREF;
<a href="index.html" onMouseOver="imgOn('main')" onMouseOut="imgOff('main')"><img src="g_homeoff.gif" name="main" alt="Home" border="0" width="128" height="20"></a>

[/quote]

This is the javascript that I use on The Art of Building. If you want to see what it looks like in a page, click on The Art of Building in my signature and view the source on the first page that loads.

Neranz Laverani, Seeker of Knowledge
Neranz Laverani is offline   Reply With Quote
Reply


Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 08:42 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud Sites.com 2022