U2 Video Clips on multiple layers
I've managed to serve a web page with 16 U2 Realvideo clips.
A small image of each clip acts to serve the respecitve clip via "onMouseover" (I might change this to radio button) but it seems to work okay....except....
IT ONLY WORKS IN NS - not IE.
I am having trouble creating the same layer tags to make the IE layer work the same - can someone help?
You need to create the layer on the fly otherwise the real video will start before the layer is shown.
any ideas would be appreciated.
*****************************************************
function layerCreateLive(name,clipnum){ //required for one_cycle event-layer graphic anims so that they start on rmouseOver
var clip='music'+clipnum+'.rpm';
var layer=layerGet(name);
var cont='';
cont += '';
cont += '';
layer.document.write(cont);
layer.document.close();
layer.visibility="show";
layer.top = 355;
layer.left = 57;
//if (document.layers)layer.visibility="show";
//if (document.all) layer.style.pixelTop=330;
//if (document.all) layer.style.pixelLeft=57;
//if (document.all) layer.style.visibility="visible";
}
function layerGet(name){
if (document.layers) return(document.layers[name]);
else if (document.all){
layer = eval('document.all.' + name + '.style');
return(layer);
} else return(null);
}
*************
The code will work for NS but not for IE - the commented stuff is what I thought IE would like...but no.
http://members.ozemail.com.au/~stuartjohnston/U2/U2Songs2.htm
detox posted this at 12:17 — 21st May 2001.
They have: 571 posts
Joined: Feb 2001
Are you still having troubles with this? This thread started a while ago. I'm puzzled why no-one answered before this. So you have my apologies. If you still need help on this one, let us know.. I am getting the code and all now
Celstk550 posted this at 21:39 — 21st May 2001.
They have: 30 posts
Joined: Jan 2000
I am also trying an alternative frameset arrangement to rewrite the contents of the display frame upon selection.
The layer idea is better 'cause it avoids pop-up adverts being alerted on refresh at free hosts (my prefered).
TIA
Celstk550 posted this at 17:54 — 6th June 2001.
They have: 30 posts
Joined: Jan 2000
go here to check out my cross browser real media clip loader page...
http://members.ozemail.com.au/~stuartjohnston/U2/U2Songs2.htm
You have to have javascript to view this page....
comments appreciated....
I'll double post this at the critque section too....
Q's
1. I've tried STYLE: "no decoration" to remove the underlines - but it fouls in Netscape 4 on this page...any other suggestions?
2. The innerHTML property was a real bug bear for quite some time...I final discovered that if I have any single quotations mixed within my text for the replace....it fails in IE5...eg:
replacecontent("thisLayer","ABCDEFG's")
where replacecontent is
eval("layerobject.innerHTML."+ABCDEFG's)....
Jack Michaelson posted this at 21:09 — 6th June 2001.
He has: 1,733 posts
Joined: Dec 1999
Try: STYLE="Text-decoration:none;"
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.