Works fine with ie and firefox. All the script is there to do is open a new window but delayed so that users can see the button unpress.
Javascript:
[CODE]
var url2;
function popup(url)
{
url2 = url;
params = ‘width=’+screen.width;
params += ‘, height=’+screen.height;
params += ‘, menubar=yes’;
params += ‘, location=yes’;
params += ‘, resizable=yes’;
params += ‘, directories=yes’;
params += ‘, toolbars=yes’;
params += ‘, top=0’;
params += ‘, left=0’;
params += ‘, status=yes’;
params += ‘, scrollbars=yes’;
setTimeout(“window.open(url2,’windowname4′, params)”,500);
}
html
[QUOTE]
<span class=”webdeveloper” title=”Webdeveloper” onmouseup=”this.style.backgroundPosition =’top’,popup(‘www.webdeveloper.com’)” onmouseover=”this.style.cursor=’pointer'” onmousedown=”this.style.backgroundPosition =’bottom’,style.cursor=’pointer'”>Press Me!</span>
This is my favourite way of doing things.
The problem is that Chrome wont do a window.open launched from a set timeout.
(buttons are an image background that shows just half of the image at a time)
But its nerfed if i cant get it to work on 0.00005% of the browsers that visits the sites! (ive come to really dislike chrome)
Please help!