PDA

View Full Version : Question mousover, help me please (view on site)


Deguram
05-31-2002, 06:47 AM
I tried to change the mouse-over script displayed http://www.a1javascripts.com/mouseover_scripts/doublemo/doublemo.html(see Attachment), so I could use it in my new site. But it didn't work. Maybe I did something wrong in the script itself or maybe I put it in a wrong place in my website. You can wach my site at HTTP://WWW.BARTJE.BIZ the script is not in there at the moment. But I put the pics on the place where the mouseover should work. In the topframe, the cartoons should change of color and in the botomframe the words change.(Bartje.biz, Bartje.Wekuluks and so one) Can somebody please help me to change the script en tell me where I should put it in the HTML and what frame!!!

Thanks a lot
Dave Rammeloo
HTTP://WWW.BARTJE.BIZ

scoutt
05-31-2002, 10:23 AM
it's hard to tell what problem you are having if you don't show us teh troubled code. or an example on your site.

Deguram
05-31-2002, 04:05 PM
<script language="javascript">
//script found on www.a1javascripts.com
//all credit to unknown author
<!-- hide script from old browsers

window.onerror = null;

var netscape = 0;
var goodIE = 0;
browserName = navigator.appName.substring(0,8);
browserVer = parseFloat(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3)
{ netscape = 1; }
if (browserName == "Microsof" && browserVer >= 4)
{ goodIE = 1; }
// end error trapping code


if (netscape || goodIE) {

pic1 = new Image(600,70);
pic1.src = "/pics/Bartjebiz.gif";
pic2 = new Image(600,70);
pic2.src = "/pics/BartjeFlauwekrul.gif";
pic3 = new Image(600,70);
pic3.src = "/pics/BartjeZaakuluk.gif";
pic4 = new Image(600,70);
pic4.src = "/pics/BartjeOopienie.gif";
pic5 = new Image(600,70);
pic5.src = "/pics/BartjeWekuluks.gif";
pic6 = new Image(600,70);
pic6.src = "/pics/Bartjevielusofie.gif";
pic7 = new Image(600,70);
pic7.src = "/pics/BartjeHieperlinks.gif";

a1 = new Image(90,45);
a1.src = "/pics/Flauwekrul.gif";
a2 = new Image(90,45);
a2.src = "/pics/Flauwekrul2.gif";
b1 = new Image(90,45);
b1.src = "/pics/Zaakuluk.gif";
b2 = new Image(90,45);
b2.src = "/pics/Zaakuluk2.gif";
c1 = new Image(90,45);
c1.src = "/pics/Oopienie.gif";
c2 = new Image(90.45);
c2.src = "/pics/Oopienie2.gif";
d1 = new Image(90,45);
d1.src = "/pics/Wekuluks.gif";
d2 = new Image(90,45);
d2.src = "/pics/Wekuluks2.gif";
e1 = new Image(90,45);
e1.src = "/pics/Vielusofie.gif";
e2 = new Image(90,45);
e2.src = "/pics/Vielusofie2.gif";
f1 = new Image(90,45);
f1.src = "/pics/Hieperlinks.gif";
f2 = new Image(90,45);
f2.src = "/pics/Hieperlinks2.gif";

}

function hiLite(imgDocID, imgObjName, imgDocID2, imgObjName2) {
if (netscape || goodIE) {
document.images[imgDocID].src = eval(imgObjName + ".src");
document.images[imgDocID2].src = eval(imgObjName2 + ".src");

}}

//end hiding -->
</script>

place these parts where you want your images to show
=====================================================
big image
----------------------------------------
<img SRC="/pics/Bartjebiz.gif" NAME="pic" ALT="Default Image" height=45 width=90>
----------------------------------------
buttons
----------------------------------------
<a href="navigatieboven.html" onMouseOver="hiLite('pic','pic2','a','a2'); window.status='Button 1';return true;" onMouseOut="hiLite('pic','pic1','a','a1'); window.status='';return true;" onclick="window.focus()"><img SRC="Flauwekrul.gif" NAME="a" ALT="Button 1" BORDER=0 height=45 width=90></a>
<a href="navigatieboven.html" onMouseOver="hiLite('pic','pic3','b','b2'); window.status='Button 2';return true;" onMouseOut="hiLite('pic','pic1','b','b1'); window.status='';return true;" onclick="window.focus()"><img SRC="Zaakuluk.gif" NAME="b" ALT="Button 2" BORDER=0 height=45 width=90></a>
<a href="navigatieboven.html" onMouseOver="hiLite('pic','pic4','c','c2'); window.status='Button 3';return true;" onMouseOut="hiLite('pic','pic1','c','c1'); window.status='';return true;" onclick="window.focus()"><img SRC="Oopienie.gif" NAME="c" ALT="Button 3" BORDER=0 height=45 width=90></a>
<a href="navigatieboven.html" onMouseOver="hiLite('pic','pic5','d','d2'); window.status='Button 4';return true;" onMouseOut="hiLite('pic','pic1','d','d1'); window.status='';return true;" onclick="window.focus()"><img SRC="Wekuluks.gif" NAME="d" ALT="Button 4" BORDER=0 height=45 width=90></a>
<a href="navigatieboven.html" onMouseOver="hiLite('pic','pic6','e','e2'); window.status='Button 5';return true;" onMouseOut="hiLite('pic','pic1','e','e1'); window.status='';return true;" onclick="window.focus()"><img SRC="Vielusofie.gif" NAME="e" ALT="Button 5" BORDER=0 height=45 width=90></a>
<a href="navigatieboven.html" onMouseOver="hiLite('pic','pic7','f','f2'); window.status='Button 6';return true;" onMouseOut="hiLite('pic','pic1','f','f1'); window.status='';return true;" onclick="window.focus()"><img SRC="Hieperlinks.gif" NAME="f" ALT="Button 6" BORDER=0 height=45 width=90></a>

scoutt
05-31-2002, 04:42 PM
if you put all that one one page it won't work. you are using frames and that script is not setup to work with frames.

you also said it didn't work. well wheres is the not so working copy on your site. that will be the only way we can see it not working to tell you what you did wrong.

Deguram
05-31-2002, 05:49 PM
http://www.bartje.biz

please look if you understand what i dit wrong, i placed the script in it.

scoutt
05-31-2002, 05:53 PM
looks like to me you are not linking to your images.

and another thing you have table issues as well. you seemed to have forgotten a few tags.