ancestral
08-16-2003, 04:32 AM
I have tried everything I know and I though I might get some outside assistant, I am trying to get 2 diferent mouse overs on the one page. I can only seem to get one to work at a time and it is starting to annoy me a little.
Basicaly that's what I have done out them in to a table inside a frame but all that isn't on here I don't have a prob with that.
If anyone can help that would be great.
<script language="javascript">
<!--
a1=new Image
a1.src="images/logo1.jpg"
a2=new Image
a2.src="images/logo.jpg"
b1=new Image
b1.src="images/logo.jpg"
b2=new Image
b2.src="images/logo1.jpg"
//-->
</script>
<script>
<!--
function filter(imagename,objectsrc){
if (document.images)
document.images[imagename].src=eval(objectsrc+".src")
}
//-->
</script>
<!-- -->
<a href="index.htm"
onmouseover="filter('img1','a2'); window.status='Status Message';return true;"
onmouseout="filter('img1','a1'); window.status='';return true;" onclick="window.focus()">
<img src="images/logo1.jpg" name="img1"></a>
<!-- -->
</tr>
</Table>
<Table>
<tr>
<!-- -->
<a href="index.htm"
onmouseover="filter('img1','b2'); window.status='Status Message';return true;"
onmouseout="filter('img1','b1'); window.status='';return true;" onclick="window.focus()">
<img src="images/logo.jpg" name="img1"></a>
<!-- -->
Basicaly that's what I have done out them in to a table inside a frame but all that isn't on here I don't have a prob with that.
If anyone can help that would be great.
<script language="javascript">
<!--
a1=new Image
a1.src="images/logo1.jpg"
a2=new Image
a2.src="images/logo.jpg"
b1=new Image
b1.src="images/logo.jpg"
b2=new Image
b2.src="images/logo1.jpg"
//-->
</script>
<script>
<!--
function filter(imagename,objectsrc){
if (document.images)
document.images[imagename].src=eval(objectsrc+".src")
}
//-->
</script>
<!-- -->
<a href="index.htm"
onmouseover="filter('img1','a2'); window.status='Status Message';return true;"
onmouseout="filter('img1','a1'); window.status='';return true;" onclick="window.focus()">
<img src="images/logo1.jpg" name="img1"></a>
<!-- -->
</tr>
</Table>
<Table>
<tr>
<!-- -->
<a href="index.htm"
onmouseover="filter('img1','b2'); window.status='Status Message';return true;"
onmouseout="filter('img1','b1'); window.status='';return true;" onclick="window.focus()">
<img src="images/logo.jpg" name="img1"></a>
<!-- -->