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="javascrip t:PlayCosmos('p r-08-highlights-eurosport','738 5866',
13,4,2008);">On e Minute Race Highlights from Paris-Roubaix</a>
function PlayCosmos(titl e, id, day, month, year) {
url = 'http://cosmos.bcst.yah oo.com/up/player/popup/index.php?
cl='+id;
NewWindow(url,t itle,430,426,'n o');
}
function NewWindow(mypag e, title, w, h, scroll) {
OpenWindow(mypa ge, title, w, h, scroll);
win.window.focu s();
}
function OpenWindow(mypa ge, title, w, h, scroll) {
var winl = parseInt((windo w.screen.width - w) / 2);
var wint = parseInt((windo w.screen.height - h) / 2);
winprops = 'height='+h+',w idth='+w+',top= '+wint+',left=' +winl
+',scrollbars=' +scroll+',resiz able=no';
win = window.open(myp age, 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:
tia,
Steve
from my links. An error is generated before the window opens.
For example:
<a href="javascrip t:PlayCosmos('p r-08-highlights-eurosport','738 5866',
13,4,2008);">On e Minute Race Highlights from Paris-Roubaix</a>
function PlayCosmos(titl e, id, day, month, year) {
url = 'http://cosmos.bcst.yah oo.com/up/player/popup/index.php?
cl='+id;
NewWindow(url,t itle,430,426,'n o');
}
function NewWindow(mypag e, title, w, h, scroll) {
OpenWindow(mypa ge, title, w, h, scroll);
win.window.focu s();
}
function OpenWindow(mypa ge, title, w, h, scroll) {
var winl = parseInt((windo w.screen.width - w) / 2);
var wint = parseInt((windo w.screen.height - h) / 2);
winprops = 'height='+h+',w idth='+w+',top= '+wint+',left=' +winl
+',scrollbars=' +scroll+',resiz able=no';
win = window.open(myp age, 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:
tia,
Steve
Comment