Forum Moderators: open

Message Too Old, No Replies

onclick :S

2 different on click function

         

nightwisher

8:59 pm on Feb 24, 2007 (gmt 0)

10+ Year Member



hi i have small problem i need to combinate 2 different onclick functions

1st: <a href="main/kava.html" target="mainFrame" onClick='parent.topFrame2.location.href="nested main/kava.html"'>nested main/kava.html</a>

2nd:<a href="main/kava.html" target="mainFrame" onclick="MM_nbGroup('down','group1','kava','buttons/A1_index_03.gif',1)" onmouseover="MM_nbGroup('over','kava','buttons/A3_index_03.gif','',1)" onmouseout="MM_nbGroup('out')" ><img src="buttons/A2_index_03.gif" alt="" name="kava" width="180" height="33" border="0" id="kava" onload=""/></a>

can some1 help me pls :)

scriptmasterdel

11:38 am on Mar 4, 2007 (gmt 0)

10+ Year Member



Hi,

What you need to do really is create an function in some inline script tags, like so ....

<script>
function myCustomFunction()
{
parent.topFrame2.location.href="nested main/kava.html";
MM_nbGroup('down','group1','kava','buttons/A1_index_03.gif',1);
}
</script>

Then on the onclick event you need to add something like the following.

onClick="myCustomFunction();"

I hope this helps.

Del