[thelist] Link check please
dn at dittodesign.co.uk
dn at dittodesign.co.uk
Sat Mar 2 06:41:00 CST 2002
Hi all,
Could anybody with a spare minute flit
over here
www.odaban.com
and check the order button link, it's the
one in the bottom left with the currency
symbols on.
Apparently some visitors are unable to get
through. I have a small script on the link
that checks for the browser. Dead simple
IE goes one way and NS the other. Thus
<script language="JavaScript">
function redirectPage() {
if (navigator.appName == "Microsoft Internet Explorer")
window.location.href= 'order.htm';
else window.location.href= 'order-N.htm';
}
</script>
and on the button
<a href="#"
onMouseOver="changeImages('odaban_26',
'images/odaban/odaban_26-over.jpg', 'odaban_27',
'images/odaban/odaban_27-odaban_26_over.jpg', 'odaban_29',
'images/odaban/odaban_29-odaban_26_over.jpg'); return true;"
onMouseOut="changeImages('odaban_26', 'images/odaban/odaban_26.jpg',
'odaban_27', 'images/odaban/odaban_27.jpg', 'odaban_29',
'images/odaban/odaban_29.jpg'); return true;"
onClick="if (navigator.appName == 'Microsoft Internet Explorer')
this.blur();redirectPage()">
double script call on the onClick there at the end.
Anyone any ideas why it isn't working for some users.
There's a check on the index page that javascript is
enabled and a redirect if not.
TIA
Darren Yates
dn at dittodesign.co.uk
http://dittodesign.co.uk
More information about the thelist
mailing list