Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

3 rollovers together????

Status
Not open for further replies.

aconception

Technical User
May 23, 2002
6
FR
Hello !

Got to re-do that navigation menu :( it seems that there are 3 rollovers "mixed" together?? I know how to do a rollover within dreamweaver (original image + rollover image) but 3 images????? (sorry about my english, I am not an english mother tongue). Somenone could have a look at that website and let me know how to do that? (I've got the authorisation for using that menu design by the way).
Thanks!!!
Nat
 
Hi Nat!

About what 3 rollovers are talking about?..

Anyway, creating "3 rollovers" at a time is not a problem.

1) create all rollovers separately (original image + rollover image);
2) select first rollover that should be called;
3) go to code view and find that piece of code
onMouseOver="MM_swapImage('image_name','','image_path',1)"

4) copy the code between double quotes ""
MM_swapImage('image_name','','image_path',1)

5) select an object that should call 3 rollovers (link or image);
6) go to code view and find that piece of code
onMouseOver="MM_swapImage('another_image_name','','another_image_path',1)"

7) put semicolon and paste code before last double quote:
onMouseOver="MM_swapImage('another_image_name','','another_image_path',1); MM_swapImage('image_name','','image_path',1)"

8) do steps 2-7 with two others rollovers.


Was it what you needed? Good Luck! :)
 
well well well, good luck I need indeed! :) Thanks a lot anyway!!

 
just tried :-( don't get it. Sorry....
(you are not out of task (did not know that expression :) just me too stupid I guess.

In fact just want to "reproduce" the navigation menu from that web site "
menu link :

1/ font in blue when you look at it,
2/ grey when you go over it
3/ and blue + arrow when you click on it.

à plus :)

Nat
 
Finally got it! :)

There are two ways how you can accomplish this.

1) use graphical tool (FireWorks, PhotoPaint, etc.) which can easily can create it for you and simply export it into DW;
2) do some hand coding.

If you have Fireworks (fortunately most of DW users got it as well) use it to create needed button. If don't know how - I'll explain how. If you don't have graphical tool - I'll help you with a code. Good Luck! :)
 
prefer you to help me with a code if u don't mind, rollovers with fireworks are hell!!! Could you do it with 3 (fictives) images files names? (image1, image2, image3..)

bon off now, here it's 19.30, time to stop ! :))

thanks for everything!!!!!!!!!!!!!!!!!!!!!!

Nat
 
LONG, LONG LISTING...
It's the code I took from your site, mailinks.htm - left file with site menus. I changed it for you so you may use it. Code I entered colored red.
Don't forget to create images and name them:
- menu28.gif - normal state
- menu39.gif - over state
- menu30.gif - clicked/pressed state

If it doesn't work - say - I haven't tested it...



<HTML>
<HEAD>
<TITLE>MAINLINKS</TITLE>
<META http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<!-- Produced by Magnus Ivarsson 990208:
Thanks for looking at our source code!
-->
<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
selected_page=0;
address = new Array(10);
address[1] = &quot;lopsedel.asp&quot;;
address[2] = &quot;foretag.htm&quot;;
address[3] = &quot;projekt.htm&quot;;
address[4] = &quot;miljo.htm&quot;;
address[5] = &quot;katalog.htm&quot;;
address[6] = &quot;program.asp&quot;;
address[7] = &quot;forum.htm&quot;;
address[8] = &quot;adresser.htm&quot;;
address[9] = &quot;Teknik.asp&quot;;
address[10] = &quot;file_name.asp&quot;;

menuImages = new Array(30)
for(i = 1; i < 31; i++)
{
Code:
menuImages[i] = new Image(104,16)
   menuImages[i].src = &quot;bilder/navgif/meny&quot;+i+&quot;.gif&quot;
   }

function link(i)
{
selected_page=i;

if (i == 1)
document.images['one'].src=menuImages[i+2].src;
if (i == 2)
document.images['two'].src=menuImages[i+4].src;
if (i == 3)
document.images['three'].src=menuImages[i+6].src;
if (i == 4)
document.images['four'].src=menuImages[i+8].src;
if (i == 5)
document.images['five'].src=menuImages[i+10].src;
if (i == 6)
document.images['six'].src=menuImages[i+12].src;
if (i == 7)
document.images['seven'].src=menuImages[i+14].src;
if (i == 8)
document.images['eight'].src=menuImages[i+16].src;
if (i == 9)
document.images['nine'].src=menuImages[i+18].src;
if (i == 10)
document.images['ten'].src=menuImages[i+20].src;


parent.Right.location =
Code:
address[i];

if (selected_page != 1)
document.images['one'].src=menuImages[1].src;
if (selected_page != 2)
document.images['two'].src=menuImages[4].src;
if (selected_page != 3)
document.images['three'].src=menuImages[7].src;
if (selected_page != 4)
document.images['four'].src=menuImages[10].src;
if (selected_page != 5)
document.images['five'].src=menuImages[13].src;
if (selected_page != 6)
document.images['six'].src=menuImages[16].src;
if (selected_page != 7)
document.images['seven'].src=menuImages[19].src;
if (selected_page != 8)
document.images['eight'].src=menuImages[22].src;
if (selected_page != 9)
document.images['nine'].src=menuImages[25].src;
if (selected_page != 10)
document.images['ten'].src=menuImages[28].src;

}

function on_image(loc, track, img)
{
if (selected_page != track)
loc.src=menuImages.src;
}

function off_image(loc, track, img)
{
if (selected_page != track)
loc.src=menuImages[img].src;
}
</SCRIPT>
</HEAD>

<script language=&quot;JavaScript&quot;>

function popwin() {
var h=597,sc=0;
if(screen.height <= 600) {
h=500;
sc=1;
}
window.open(&quot;[URL unfurl="true"]http://195.100.37.10/idaserv/IdaServer&quot;,&quot;idamod&quot;,'width=788,height='+h+',scrollbars='+sc+',toolbar=0,status=yes,navigation=0,resizable=yes');[/URL]
}

</script>

<BODY BGCOLOR=&quot;#FFFFFF&quot; MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot;>
<!-- Här börjar första kolumnen logo samt länkar-->
<TABLE width=&quot;155&quot;>
<TR ALIGN=&quot;LEFT&quot;>

<TD VALIGN=&quot;TOP&quot; ALIGN=&quot;LEFT&quot; width=&quot;137&quot; > <BR>
  <A HREF=&quot;lopsedel.asp&quot; TARGET=&quot;Right&quot;><IMG SRC=&quot;../bilder/sflog_a.gif&quot; WIDTH=&quot;100&quot; HEIGHT=&quot;100&quot; BORDER=&quot;0&quot;></A>
<BR>
<BR>
<CENTER>
<div align=&quot;LEFT&quot;> <A HREF=&quot;javascript:link(1)&quot;
onMouseOver=&quot;on_image(one, 1, 2) ; self.status='News sheet' ; return true&quot;
onMouseOut=&quot;off_image(one, 1, 1) ; self.status='' ; return true&quot;> <font size=&quot;1&quot;><IMG SRC=&quot;bilder/navgif/meny1.gif&quot; NAME=&quot;one&quot; ALT=&quot;News sheet&quot; BORDER=0 WIDTH=104 HEIGHT=16 ALIGN=&quot;TOP&quot;>
</font></a> <font size=&quot;1&quot;><A HREF=&quot;javascript:link(2)&quot;
onMouseOver=&quot;on_image(two, 2, 5) ; self.status='Company' ; return true&quot;
onMouseOut=&quot;off_image(two, 2, 4) ; self.status='' ; return true&quot;> <IMG SRC=&quot;bilder/navgif/meny4.gif&quot; NAME=&quot;two&quot; ALT=&quot;Company&quot; BORDER=0 WIDTH=104 HEIGHT=16 ALIGN=&quot;TOP&quot;>
</a> <A HREF=&quot;javascript:link(3)&quot;
onMouseOver=&quot;on_image(three, 3, 8) ; self.status='Projects' ; return true&quot;
onMouseOut=&quot;off_image(three, 3, 7) ; self.status='' ; return true&quot;> <IMG SRC=&quot;bilder/navgif/meny7.gif&quot; NAME=&quot;three&quot; ALT=&quot;Projects&quot; BORDER=0 WIDTH=104 HEIGHT=16 ALIGN=&quot;TOP&quot;>
</a> <A HREF=&quot;javascript:link(4)&quot;
onMouseOver=&quot;on_image(four, 4, 11) ; self.status='Environment' ; return true&quot;
onMouseOut=&quot;off_image(four, 4, 10) ; self.status='' ; return true&quot;> <IMG SRC=&quot;bilder/navgif/meny10.gif&quot; NAME=&quot;four&quot; ALT=&quot;Environment&quot; BORDER=0 WIDTH=104 HEIGHT=16 ALIGN=&quot;TOP&quot;>
</a> <A HREF=&quot;javascript:link(5)&quot;
onMouseOver=&quot;on_image(five, 5, 14) ; self.status='Our Products' ; return true&quot;
onMouseOut=&quot;off_image(five, 5, 13) ; self.status='' ; return true&quot;> <IMG SRC=&quot;bilder/navgif/meny13.gif&quot; NAME=&quot;five&quot; ALT=&quot;Our Products&quot; BORDER=0 WIDTH=104 HEIGHT=16 ALIGN=&quot;TOP&quot;>
</a> <A HREF=&quot;javascript:link(9)&quot;
onMouseOver=&quot;on_image(nine, 9, 26) ; self.status='Technology' ; return true&quot;
onMouseOut=&quot;off_image(nine, 9, 25) ; self.status='' ; return true&quot;> <IMG SRC=&quot;bilder/navgif/meny25.gif&quot; NAME=&quot;nine&quot; ALT=&quot;Technology&quot; BORDER=0 WIDTH=104 HEIGHT=16 ALIGN=&quot;TOP&quot;>
</a> <A HREF=&quot;javascript:link(6)&quot;
onMouseOver=&quot;on_image(six, 6, 17) ; self.status='Software' ; return true&quot;
onMouseOut=&quot;off_image(six, 6, 16) ; self.status='' ; return true&quot;> <IMG SRC=&quot;bilder/navgif/meny16.gif&quot; NAME=&quot;six&quot; ALT=&quot;Software&quot; BORDER=0 WIDTH=104 HEIGHT=16 ALIGN=&quot;TOP&quot;>
</a> <A HREF=&quot;javascript:link(7)&quot;
onMouseOver=&quot;on_image(seven, 7, 20) ; self.status='Forum' ; return true&quot;
onMouseOut=&quot;off_image(seven, 7, 19) ; self.status='' ; return true&quot;> <IMG SRC=&quot;bilder/navgif/meny19.gif&quot; NAME=&quot;seven&quot; ALT=&quot;Forum&quot; BORDER=0 WIDTH=104 HEIGHT=16 ALIGN=&quot;TOP&quot;>
</a> <A HREF=&quot;javascript:link(8)&quot;
onMouseOver=&quot;on_image(eight, 8, 23) ; self.status='Addresses' ; return true&quot;
onMouseOut=&quot;off_image(eight, 8, 22) ; self.status='' ; return true&quot;> <IMG SRC=&quot;bilder/navgif/meny22.gif&quot; NAME=&quot;eight&quot; ALT=&quot;Addresses&quot; BORDER=0 WIDTH=104 HEIGHT=16 ALIGN=&quot;TOP&quot;>
</a>[COLOR=red]<A HREF=&quot;javascript:link([b]10[/b])&quot;
onMouseOver=&quot;on_image([b]ten, 10, 29[/b]) ; self.status='[b]put here describing text that apears in the status bar[/b]' ; return true&quot;
onMouseOut=&quot;off_image([b]ten, 10, 28[/b]) ; self.status='' ; return true&quot;> <IMG SRC=&quot;bilder/navgif/[b]meny28.gif[/b]&quot; NAME=&quot;ten&quot; ALT=&quot;[b]ALT TEXT[/b]&quot; BORDER=0 [b]WIDTH=XX HEIGHT=XX[/b] ALIGN=&quot;TOP&quot;>
</a>[/color]</font> </div>

<SCRIPT language=&quot;JavaScript&quot;>

function navigate(form)

{

var go = (form.linkList.options[form.linkList.selectedIndex].value);

parent.Right.location.href=&quot;PDFlib&quot;+go;

}



</SCRIPT>

<br>
<CENTER>
<table border=&quot;0&quot; width=&quot;100&quot; height=26>
<tr align=center valign=middle>
<td valign=middle><a href=javascript:popwin()><img src=&quot;bilder/PCWmenu.jpg&quot; width=&quot;100&quot; height=&quot;26&quot; align=&quot;center&quot; border=0></a></td>
</tr>
</table>
<FORM METHOD=&quot;POST&quot; id=form1 name=form1>
<table width=&quot;98%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr valign=&quot;top&quot;>
<td><font size=1 face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>Do
you know what product you're looking for? Download here! </font>
</td>
</tr>
</table>

<SELECT name=&quot;linkList&quot;>

<OPTION value=&quot;/eric/ACKa-2.pdf&quot;>ACKa.pdf</OPTION>
... HUGE NUMBER OF OPTIONS ...
<OPTION value=&quot;/klimsys/fasapp/YMCa.pdf&quot;>YMCa.pdf</OPTION>
</SELECT>
<BR>
<input type=&quot;BUTTON&quot; value=&quot;Download!&quot; onClick=&quot;navigate(this.form)&quot;>
<BR>
</form>
<BR>
<a href=&quot;q.htm&quot; TARGET=&quot;Right&quot;><img src=&quot;bilder/9001eng.gif&quot; width=&quot;52&quot; height=&quot;67&quot; align=&quot;left&quot; border=0></a><a href=&quot;q.htm&quot; TARGET=&quot;Right&quot;><img src=&quot;bilder/14001eng.gif&quot; width=&quot;52&quot; height=&quot;68&quot; align=&quot;right&quot; border=0></a>
</CENTER>

</center></TD>



<!-- Här det lodräta strecket och andra columnen -->
<TD VALIGN=&quot;Top&quot; WIDTH=10>
<CENTER>
<IMG SRC=&quot;../bilder/dotlod.gif&quot; WIDTH=&quot;3&quot; HEIGHT=&quot;329&quot;>
</CENTER>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>

Good Luck! :-)
 
Ok thanks!!!! will see what I can do with that. Bouhhh!!! Chinese :) Merci for your patience though. Good day and good week, Nat
 
Hi Nat!

Tell me if you are successful with the code or not.

There exists one more way of doing what you need (and my fault that I didn't say about it earlier) - use Dreamweaver's behaviour - Set Nav Bar Image. I think this is the easiest way to acomplish what you need, the only problem with it is to rebuild whole menu (what may take couple of minutes). Good Luck! :)
 
At this point sounds like you guys have something going.... :p
Dumboy.! Ouch.! .my brain.....
spiderdesign@yahoo.com

It's hard to think with only one neuron......Ouch.....!....it hurts when I think......!
 
:) was a bit &quot;more&quot; simple I must say.... :) ok gonna try that one. BTW are u using dreamweaver MX yet? Wonder if it's worth it, me still using version 4.

merci pour tout!!!

Nat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top