nali
03-02-2006, 07:38 PM
I am trying to make a rollover and I'm having trouble.....I have an example but I'm not sure what I am suposed to do with the "holder" here is a link to the site where I got my example from.....http://www.daxassist.com/js/disjointedtextlinks.cfm
this is the example I have........<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
<!--
//JavaScript Disjointed Text Links
//copyright © 2000 - 2003, Dax Assist
//visit http://www.daxassist.com for this and other javascripts
with full tutorials.
if(document.images) {
pics = new Array();
pics[1] = new Image();
pics[1].src = "clear.gif";
pics[2] = new Image();
pics[2].src = "pic1.gif";
pics[3] = new Image();
pics[3].src = "pic2.gif";
}
function changer(from,to) {
if(document.images) {
document.images[from].src = pics[to].src;
}
}
//-->
</SCRIPT>
<img name="holder" id="holder" src="clear.gif" alt="Holder"
width="96" height="87" hspace="30" border="0">
<a href="javascript:;" onMouseOver="changer('holder',2)"
onMouseOut="changer('holder',1)">Text Link 1</a>
okay, I changed the pictures to fit my needs but I even made them the same size as the ones here in this example but I don't know what to do with the "holder"
here is my version...........
<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
<!--
//JavaScript Disjointed Text Links
//copyright © 2000 - 2003, Dax Assist
//visit http://www.daxassist.com for this and other javascripts
with full tutorials.
if(document.images) {
pics = new Array();
pics[1] = new Image();
pics[1].src = "images/tree5.gif";
pics[2] = new Image();
pics[2].src = "images/tree6.gif";
pics[3] = new Image();
pics[3].src = "images/tree7.gif";
}
function changer(from,to) {
if(document.images) {
document.images[from].src = pics[to].src;
}
}
//-->
</SCRIPT>
<img name="holder" id="holder" src="images/tree5.gif" alt="holder"
width="96" height="87" hspace="30" border="0">
<a href="javascript:;" onMouseOver="changer('holder',2)"
onMouseOut="changer('holder',1)">tree link</a>
this is the example I have........<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
<!--
//JavaScript Disjointed Text Links
//copyright © 2000 - 2003, Dax Assist
//visit http://www.daxassist.com for this and other javascripts
with full tutorials.
if(document.images) {
pics = new Array();
pics[1] = new Image();
pics[1].src = "clear.gif";
pics[2] = new Image();
pics[2].src = "pic1.gif";
pics[3] = new Image();
pics[3].src = "pic2.gif";
}
function changer(from,to) {
if(document.images) {
document.images[from].src = pics[to].src;
}
}
//-->
</SCRIPT>
<img name="holder" id="holder" src="clear.gif" alt="Holder"
width="96" height="87" hspace="30" border="0">
<a href="javascript:;" onMouseOver="changer('holder',2)"
onMouseOut="changer('holder',1)">Text Link 1</a>
okay, I changed the pictures to fit my needs but I even made them the same size as the ones here in this example but I don't know what to do with the "holder"
here is my version...........
<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
<!--
//JavaScript Disjointed Text Links
//copyright © 2000 - 2003, Dax Assist
//visit http://www.daxassist.com for this and other javascripts
with full tutorials.
if(document.images) {
pics = new Array();
pics[1] = new Image();
pics[1].src = "images/tree5.gif";
pics[2] = new Image();
pics[2].src = "images/tree6.gif";
pics[3] = new Image();
pics[3].src = "images/tree7.gif";
}
function changer(from,to) {
if(document.images) {
document.images[from].src = pics[to].src;
}
}
//-->
</SCRIPT>
<img name="holder" id="holder" src="images/tree5.gif" alt="holder"
width="96" height="87" hspace="30" border="0">
<a href="javascript:;" onMouseOver="changer('holder',2)"
onMouseOut="changer('holder',1)">tree link</a>