»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 02-11-2004, 04:59 PM   #1 (permalink)
Registered User
 
Urban_Squrill's Avatar
 
Join Date: Nov 2002
Location: Kalispell, Montana
Posts: 1,653
Urban_Squrill is on a distinguished road
Send a message via AIM to Urban_Squrill Send a message via Yahoo to Urban_Squrill
Buttions web site how?

On my website Urbansqurill.com I have the buttions that are when you mouse over they change and when you are at that page they look like when you mouse over it. I had a friend do that for me and I can not figure out how to do it. There are 3 images for each link in the folder on the server. My friend refuses to tell me how. arg. How do you do it?

__________________
Urban is back.
And yes that is how you spell my name. I am living proof that 2+2=5
dontforget/rgdesb
Urban_Squrill is offline   Reply With Quote
Old 02-11-2004, 05:20 PM   #2 (permalink)
Registered User
 
Join Date: Jan 2003
Location: Orange, Mass.
Posts: 490
Blazer06 is on a distinguished road
Send a message via AIM to Blazer06
hes using javascript from the quick glance at it

i dont have script handy for you, but a quick google got me this for you:

I think the best way is to find another script you can go
to www.dynamicdrive.com they have about ten different
rollover scripts alone. They have tons of others, too.

Or you can use the one I use:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



5) Rollover Images

A rollover button is a image that is replaced with
another image when the mouse cursor is over it. To fully
create one from scratch, you would need to know a fair
amount of Java, and have a lot of patience. But for the
ones in this tutorial, you need neither.

To begin, start with the template, and add the first
image you should add an image to start with:

<html>
<head>
<title>
A Basic Rollover Image Test
</title>
</head>
<body>
<img src="image.jpg">
</body>
</html>

Give it a name:
<img src="image.jpg" id="rollover">

Add the JavaScript in the head, after the title:

<html>
<head>
<title>
A Basic Rollover Image Test
</title>

<script type="text/javascript">
// If you add the double forward slash, it is skipped and seen as a comment.

// Declare the first image:
startimage = new Image
// Where 'startimage' is, put a nickname for the first image


// Reveal the source of the image:
startimage.src = "image.jpg"
// Where "image.jpg" is, put the location (with respect to the .html file) of the first image in the rollover

// Declare the second image of the rollover:
endimage = new Image
// Where 'endimage' is, put a nickname for the second image

// Reveal the source of the second image:
endimage.src = "image2.jpg"
// Where "image2.jpg" is, put the location (with respect to the .html file) of the second image in the rollover

// You don't have to write these comments in to the code...

function mouseisover() {
document.rollover.src = endimage.src; return true;
}

function mouseisout() {
document.rollover.src = startimage.src; return true;
}
</script
</head>
<body>
<a
onmouseover="mouseisover"
onmouseout="mouseisout">
<img src="image.jpg" id="rollover">
</a>
</body>
</html>

There you go!!! When you hold the mouse over the
image, you'll see image2.jpg, when you move it away,
you'll see image.jpg. A word of caution, it is always wise
to use same-size images.


Blaze
Blazer06 is offline   Reply With Quote
Old 02-11-2004, 05:24 PM   #3 (permalink)
Registered User
 
Bill in SD, CA's Avatar
 
Join Date: Oct 2002
Location: Bottom left of U.S.
Posts: 4,714
Bill in SD, CA is on a distinguished road
Maybe something in this thread I posted before.

http://www.techimo.com/forum/showthr...ght=mouseovers

Bill
Bill in SD, CA is offline   Reply With Quote
Old 02-11-2004, 05:48 PM   #4 (permalink)
Registered User
 
Urban_Squrill's Avatar
 
Join Date: Nov 2002
Location: Kalispell, Montana
Posts: 1,653
Urban_Squrill is on a distinguished road
Send a message via AIM to Urban_Squrill Send a message via Yahoo to Urban_Squrill
I found this line of code

</SCRIPT></HEAD><BODY bgcolor="A71E1E"><CENTER><A name="top"></A><TABLE width="760" cellspacing="0" cellpadding="0" border="0"><TR><TD colspan="7"><IMG width="760" src="./templates/Americanlife/img/A71E1E/oben1.gif" height="13"></TD></TR><TR><TD rowspan="2"><IMG width="9" src="./templates/Americanlife/img/A71E1E/oben2.gif" height="103"></TD><TD rowspan="2"><IMG width="136" src="./templates/Americanlife/img/A71E1E/logo.gif" height="103"></TD><TD rowspan="2"><IMG width="11" src="./templates/Americanlife/img/A71E1E/oben3.gif" height="103"></TD><TD colspan="4"><IMG width="604" src="./templates/Americanlife/img/company_name.gif" height="22"></TD></TR><TR><TD><IMG width="316" src="./templates/Americanlife/img/A71E1E/oben4.gif" height="81"></TD><TD rowspan="2" colspan="3"><IMG width="288" src="./templates/Americanlife/img/A71E1E/kv_4261.jpg" height="91"></TD></TR><TR><TD colspan="4"><IMG width="472" src="./templates/Americanlife/img/A71E1E/oben5.gif" height="10"></TD></TR><TR><TD valign="top" colspan="3" background="./templates/Americanlife/img/A71E1E/bg_nav.gif"><TABLE cellspacing="0" cellpadding="0" border="0"><TR><TD><A href="./4436.html?*session*id*key*=*session*id*val*" target=""><IMG name="CM4all_4436" src="./templates/Americanlife/img/navi/4436_h.gif?cc=1074568444960" alt="Home" border="0"></A></TD></TR><TR><TD><A onmouseout="reSwapImage('CM4all_6901');" onmouseover="swapImage('CM4all_6901');" href="./6901.html?*session*id*key*=*session*id*val*" target=""><IMG name="CM4all_6901" src="./templates/Americanlife/img/navi/6901_n.gif?cc=1074568444960" alt="index" border="0"></A></TD></TR><TR><TD><A onmouseout="reSwapImage('CM4all_7201');" onmouseover="swapImage('CM4all_7201');" href="./7201.html?*session*id*key*=*session*id*val*" target=""><IMG name="CM4all_7201" src="./templates/Americanlife/img/navi/7201_n.gif?cc=1074568444960" alt="Webcam" border="0"></A></TD></TR><TR><TD><A onmouseout="reSwapImage('CM4all_7301');" onmouseover="swapImage('CM4all_7301');" href="./7301.html?*session*id*key*=*session*id*val*" target=""><IMG name="CM4all_7301" src="./templates/Americanlife/img/navi/7301_n.gif?cc=1074568444960" alt="Cars" border="0"></A></TD></TR></TABLE></TD><TD valign="top" colspan="3" bgcolor="C53131"><TABLE width="593" cellspacing="0" cellpadding="0" border="0"><TR><TD width="25">&nbsp;</TD><TD width="555">&nbsp;</TD><TD width="13">&nbsp;</TD></TR><TR><TD width="25">&nbsp;</TD><TD width="555">
__________________
Urban is back.
And yes that is how you spell my name. I am living proof that 2+2=5
dontforget/rgdesb
Urban_Squrill is offline   Reply With Quote
Old 02-11-2004, 06:41 PM   #5 (permalink)
Registered User
 
Urban_Squrill's Avatar
 
Join Date: Nov 2002
Location: Kalispell, Montana
Posts: 1,653
Urban_Squrill is on a distinguished road
Send a message via AIM to Urban_Squrill Send a message via Yahoo to Urban_Squrill
That looks like
the code used for that. Am I right? if so what do I need to change?
__________________
Urban is back.
And yes that is how you spell my name. I am living proof that 2+2=5
dontforget/rgdesb
Urban_Squrill is offline   Reply With Quote
Reply




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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 10:52 AM.