Welcome Guest, Not a member yet? Register   Sign In
JavaScript and Anchors?
#1

[eluser]Bl4cKWid0w[/eluser]
I am trying to use onmouseover and onmouseout with my anchors. I've tried many different codes but none of them seem to be working. This is my code:

Code:
<?php
$atts = array(
              'onmouseover' => "window.status='Payment Options';return true;",
              'onmouseout' => "window.status='';return true;",
              'title' => 'Payment Options',
              'rel' => "moodalbox"              
              );
?>
<h1 style='text-align: right;margin-right: 20px;'>&lt;?=anchor('http://www.unholydesigns.com/system/application/views/payment_options.html', "Download File", $atts); ?&gt;</h1>

This is how the link is displayed in the source html:
Code:
href="http://www.unholydesigns.com/system/application/views/payment_options.html" onmouseover="window.status='Payment Options';return true;" onmouseout="window.status='';return true;" title="Payment Options" rel="moodalbox">Download File

Edit: These lame forums wouldn't let me post the source of the link so I removed the a tags from the post.

I've never tried this method before. I want to hide the url in the status bar because the url is that of an html file in my views directory. Nothing I've tried seems to work.

Thanks for any help in advance,
Scott.


Messages In This Thread
JavaScript and Anchors? - by El Forum - 12-19-2008, 07:23 PM
JavaScript and Anchors? - by El Forum - 12-19-2008, 08:40 PM
JavaScript and Anchors? - by El Forum - 12-19-2008, 09:52 PM
JavaScript and Anchors? - by El Forum - 12-20-2008, 04:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB