Forum Moderators: open
On my website i have this bit of code that when you click on a link it changes something in and out of my Iframe
<a target="I1" href="latestnews.htm"onclick="document.getElementById('one').src='images/Eyes%202.jpg';
document.getElementById('two').innerHTML=
'<font face=Verdana size=1 color=#FF0000><b>Latest News<b/></font>' ">
<img border="0" src="images/News.gif" width="41" height="8"></a><font color="#FFFFFF">
------------------------------------------------------
I would like to add this bit of code aswell:
OnMouseover="window.status='Under Judgement';return true;";" OnClick="window.status='Under Judgement';return true;";"
------------------------------------------------------
I managed to get it to work... BUT! it cancels out my previous code. Is there any way I can incorperate that code to make it work aswell as the other one
All help is appreciated
Kind Regards
Martin
Would this sort of function call work?
<script language=javascript>
function myDoubleFunction(){
document.getElementById('one').src='images/Eyes%202.jpg';
document.getElementById('two').innerHTML= '<font face=Verdana size=1 color=#FF0000><b>Latest News<b/></font>'
window.status='Under Judgement'
}
</script>
Then from your link:
OnMouseover="window.status='Under Judgement';return true;";" OnClick="myDoubleFunction();return true;"
-George
<script language=javascript>
function myDoubleFunction(variable1, variable2){
document.getElementById(variable1).src='images/Eyes%202.jpg';
document.getElementById(variable2).innerHTML= '<font face=Verdana size=1 color=#FF0000><b>Latest News<b/></font>'
window.status='Under Judgement'
}
</script>
OnMouseover="window.status='Under Judgement';return true;";" OnClick="myDoubleFunction(one, two);return true;"
See if that works for you.
-George