Some windows IE users encounter an error when launching javascript
from my links. An error is generated before the window opens.
For example:
<a href="javascript:PlayCosmos('pr-08-highlights-eurosport','7385866',
13,4,2008);">One Minute Race Highlights from Paris-Roubaix</a>
function PlayCosmos(title, id, day, month, year) {
url = 'http://cosmos.bcst.yahoo.com/up/player/popup/index.php?
cl='+id;
NewWindow(url,title,430,426,'no');
}
function NewWindow(mypage, title, w, h, scroll) {
OpenWindow(mypage, title, w, h, scroll);
win.window.focus();
}
function OpenWindow(mypage, title, w, h, scroll) {
var winl = parseInt((window.screen.width - w) / 2);
var wint = parseInt((window.screen.height - h) / 2);
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl
+',scrollbars='+scroll+',resizable=no';
win = window.open(mypage, title, winprops);
}
Anyone know why?
There are other variations of javascripts links that don't work in my
"Cycling video clip of the day" section on my home page:
http://www.steephill.tv
tia,
Steve