venky_lb Posted July 16, 2008 Share Posted July 16, 2008 pls find the script below , if it is toggle_tt ,then second_toggle_tt id should be hidden ,vice versa <script type="text/javascript"> function toggle_tt(id, status, xpos,ypos){ document.getElementById(id).style.display = (status == 'show') ? "inline" : "none"; document.getElementById(id).style.left = xpos +2 ; document.getElementById(id).style.top = ypos +2; } function second_toggle_tt(id, status, xpos,ypos){ document.getElementById(id).style.display = (status == 'show') ? "inline" : "none"; document.getElementById(id).style.left = xpos +2 ; document.getElementById(id).style.top = ypos +2; } </script> </head> <body> <div id="tooltip" class="dynarch-tooltip" onmouseout="toggle_tt('tooltip','hidden')"> <div class="dynarch-tooltip-title">user id</div> Enter <b>your</b> name </div> <img src="images/imagespop.jpg" onmouseover="toggle_tt('tooltip', 'show', event.clientX, event.clientY)" /><br /> <div id="tooltip" class="dynarch-tooltip" onmouseout="second_toggle_tt('tooltip','hidden')"> <div class="dynarch-tooltip-title">user id</div> <b> hello</b> <a="#" onmouseover="second_toggle_tt('tooltip', 'show', event.clientX, event.clientY)" >?</a> </body> </html> Quote Link to comment Share on other sites More sharing options...
DeanWhitehouse Posted July 16, 2008 Share Posted July 16, 2008 please use tags and whats the question? Quote Link to comment Share on other sites More sharing options...
venky_lb Posted July 16, 2008 Author Share Posted July 16, 2008 im using two div part which calls functions, 1.i ve used onmouseover and mouseout event handlers 2.the logic behind the code is if omnouseover an image toggle_t and onmouseout the div id of the image is hidden,which means the function should be stopped , but my function idoesnt stops. pls copy the code and run it for better understanding Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted July 16, 2008 Share Posted July 16, 2008 This is a Javascript question NOT a PHP question. I am moving it to the Javascript area. Ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.