Hello,
I would like to make this script work for my images as well but don't know how. When I use onmouseover I would like to change my image1 to something like image1a and then onmouseout from image1a to image1. So far text is showing fine
Thank you very much!
<script type="text/javascript"><!--
function showtext1(logo, text)
{
logo.src="arrowstochop_1.jpg";
document.getElementById("text").style.display="inline";
document.getElementById("text").innerHTML=text;
logo.onmouseout=fadeOut();
{
logo.src="arrowstochop_1.jpg";
document.getElementById("text").style.display="none";
document.getElementById("text").innerHTML="none";
}
}
function showtext2(logo, text)
{
logo.src="arrowstochop_2.jpg";
document.getElementById("text").style.display="inline";
document.getElementById("text").innerHTML=text;
logo.onmouseout=fadeOut();
{
logo.src="arrowstochop_2.jpg";
document.getElementById("text").style.display="none";
document.getElementById("text").innerHTML="none";
}
}
function showtext3(logo, text)
{
logo.src="arrowstochop_3.jpg";
document.getElementById("text").style.display="inline";
document.getElementById("text").innerHTML=text;
logo.onmouseout=fadeOut();
{
logo.src="arrowstochop_3.jpg";
document.getElementById("text").style.display="none";
document.getElementById("text").innerHTML="none";
}
}
function showtext4(logo, text)
{
logo.src="arrowstochop_4.jpg";
document.getElementById("text").style.display="inline";
document.getElementById("text").innerHTML=text;
logo.onmouseout=fadeOut();
{
logo.src="arrowstochop_4.jpg";
document.getElementById("text").style.display="none";
document.getElementById("text").innerHTML="none";
}
}
function showtext5(logo, text)
{
logo.src="arrowstochop_5.jpg";
document.getElementById("text").style.display="inline";
document.getElementById("text").innerHTML=text;
logo.onmouseout=fadeOut();
{
logo.src="arrowstochop_5.jpg";
document.getElementById("text").style.display="none";
document.getElementById("text").innerHTML="none";
}
}
function showtext6(logo, text)
{
logo.src="arrowstochop_6.jpg";
document.getElementById("text").style.display="inline";
document.getElementById("text").innerHTML=text;
logo.onmouseout=fadeOut();
{
logo.src="arrowstochop_6.jpg";
document.getElementById("text").style.display="none";
document.getElementById("text").innerHTML="none";
}
}
function showtext7(logo, text)
{
logo.src="arrowstochop_7.jpg";
document.getElementById("text").style.display="inline";
document.getElementById("text").innerHTML=text;
logo.onmouseout=fadeOut();
{
logo.src="arrowstochop_7.jpg";
document.getElementById("text").style.display="none";
document.getElementById("text").innerHTML="none";
}
}
--></script><table>
<tbody>
<tr>
<td><img onmouseover="showtext1(this, 'ONEONEONEONEONE')" src="arrowstochop_1.jpg" />
<img onmouseover="showtext2(this, 'TWOTWOTWO')" src="arrowstochop_2.jpg" />
<img onmouseover="showtext3(this, 'NEWNENWNENWNENWNENWNE')" src="arrowstochop_3.jpg" />
<img onmouseover="showtext4(this, 'ROWOOOOOOOOOOOOOOW')" src="arrowstochop_4.jpg" />
<img onmouseover="showtext5(this, 'FIFTHROWOOOO')" src="arrowstochop_5.jpg" />
<img onmouseover="showtext6(this, 'ROOOOOOOOOOOOOOOOW')" src="arrowstochop_6.jpg" />
<img onmouseover="showtext7(this, 'SEEEEEEEVEEEEN')" src="arrowstochop_7.jpg" /> </td>
</tr>
<tr>
<td><div id="text"></div></td>
</tr>
</tbody>
</table>
Use your mouse to go over each arrow and learn more.
<table border="0" name="banner">
</table>
I would like to make this script work for my images as well but don't know how. When I use onmouseover I would like to change my image1 to something like image1a and then onmouseout from image1a to image1. So far text is showing fine
Thank you very much!
<script type="text/javascript"><!--
function showtext1(logo, text)
{
logo.src="arrowstochop_1.jpg";
document.getElementById("text").style.display="inline";
document.getElementById("text").innerHTML=text;
logo.onmouseout=fadeOut();
{
logo.src="arrowstochop_1.jpg";
document.getElementById("text").style.display="none";
document.getElementById("text").innerHTML="none";
}
}
function showtext2(logo, text)
{
logo.src="arrowstochop_2.jpg";
document.getElementById("text").style.display="inline";
document.getElementById("text").innerHTML=text;
logo.onmouseout=fadeOut();
{
logo.src="arrowstochop_2.jpg";
document.getElementById("text").style.display="none";
document.getElementById("text").innerHTML="none";
}
}
function showtext3(logo, text)
{
logo.src="arrowstochop_3.jpg";
document.getElementById("text").style.display="inline";
document.getElementById("text").innerHTML=text;
logo.onmouseout=fadeOut();
{
logo.src="arrowstochop_3.jpg";
document.getElementById("text").style.display="none";
document.getElementById("text").innerHTML="none";
}
}
function showtext4(logo, text)
{
logo.src="arrowstochop_4.jpg";
document.getElementById("text").style.display="inline";
document.getElementById("text").innerHTML=text;
logo.onmouseout=fadeOut();
{
logo.src="arrowstochop_4.jpg";
document.getElementById("text").style.display="none";
document.getElementById("text").innerHTML="none";
}
}
function showtext5(logo, text)
{
logo.src="arrowstochop_5.jpg";
document.getElementById("text").style.display="inline";
document.getElementById("text").innerHTML=text;
logo.onmouseout=fadeOut();
{
logo.src="arrowstochop_5.jpg";
document.getElementById("text").style.display="none";
document.getElementById("text").innerHTML="none";
}
}
function showtext6(logo, text)
{
logo.src="arrowstochop_6.jpg";
document.getElementById("text").style.display="inline";
document.getElementById("text").innerHTML=text;
logo.onmouseout=fadeOut();
{
logo.src="arrowstochop_6.jpg";
document.getElementById("text").style.display="none";
document.getElementById("text").innerHTML="none";
}
}
function showtext7(logo, text)
{
logo.src="arrowstochop_7.jpg";
document.getElementById("text").style.display="inline";
document.getElementById("text").innerHTML=text;
logo.onmouseout=fadeOut();
{
logo.src="arrowstochop_7.jpg";
document.getElementById("text").style.display="none";
document.getElementById("text").innerHTML="none";
}
}
--></script><table>
<tbody>
<tr>
<td><img onmouseover="showtext1(this, 'ONEONEONEONEONE')" src="arrowstochop_1.jpg" />
<img onmouseover="showtext2(this, 'TWOTWOTWO')" src="arrowstochop_2.jpg" />
<img onmouseover="showtext3(this, 'NEWNENWNENWNENWNENWNE')" src="arrowstochop_3.jpg" />
<img onmouseover="showtext4(this, 'ROWOOOOOOOOOOOOOOW')" src="arrowstochop_4.jpg" />
<img onmouseover="showtext5(this, 'FIFTHROWOOOO')" src="arrowstochop_5.jpg" />
<img onmouseover="showtext6(this, 'ROOOOOOOOOOOOOOOOW')" src="arrowstochop_6.jpg" />
<img onmouseover="showtext7(this, 'SEEEEEEEVEEEEN')" src="arrowstochop_7.jpg" /> </td>
</tr>
<tr>
<td><div id="text"></div></td>
</tr>
</tbody>
</table>
Use your mouse to go over each arrow and learn more.
<table border="0" name="banner">
</table>