Metatrox
05-03-2007, 08:38 PM
Ok what I'm trying to do is have a snipet of code check the location of an iframe.
If the Iframe is at audioplayer.html I want it to do nothing.
Otherwise I want it to change to audioplayer.html
if(parent.audioframe.location.href == "http://www.newlifegallup.org/video/audioplayer.html","http://newlifegallup.org/video/audioplayer.html") { null }
else { parent.audioframe.location.href = "audioplayer.html"; }
I'm do realize "null" also probably isn't the right thing.
You can see a link of what I'm trying to do here.
http://newlifegallup.org/video/template.html
I want it so that when you open the audio or video player you can click close to completely close it, I have this setup by hiding the layer and changing the iframe to a blank page. I have it set up so if the audio player is open and i click the video player it will close the audio and change the audio iframe to blank. But when you go back to click the audio button i need it to check the iframe's location. Because I don't want it to just change the iframe location every time.
I hope this is understandable
If the Iframe is at audioplayer.html I want it to do nothing.
Otherwise I want it to change to audioplayer.html
if(parent.audioframe.location.href == "http://www.newlifegallup.org/video/audioplayer.html","http://newlifegallup.org/video/audioplayer.html") { null }
else { parent.audioframe.location.href = "audioplayer.html"; }
I'm do realize "null" also probably isn't the right thing.
You can see a link of what I'm trying to do here.
http://newlifegallup.org/video/template.html
I want it so that when you open the audio or video player you can click close to completely close it, I have this setup by hiding the layer and changing the iframe to a blank page. I have it set up so if the audio player is open and i click the video player it will close the audio and change the audio iframe to blank. But when you go back to click the audio button i need it to check the iframe's location. Because I don't want it to just change the iframe location every time.
I hope this is understandable