Javascript Modification
I have a javascript that should be modificated for me.The code goes like this
<head>
<style type=”text/css”>
.containerDiv {width:560px;height:340px;position:relative;}
.containerDiv div.overlayVid {position:absolute;z-index:100;top:0px;left:0px;width:560px;height:310px;background-color:#000;filter:alpha(opacity=30);opacity: 0.5;-moz-opacity:0.5;text-align:center;padding-top:30px;}
.containerDiv object.mainVid {position:absolute;z-index:0;top:00px;left:0px;}
.containerDiv div.overlayVid div.hideLink {filter:alpha(opacity=100);opacity: 1;-moz-opacity:1;text-align:center;font-family:arial;background-color:#000;font-size:11px;}
.containerDiv div.overlayVid div.hideLink a {color:#fff;}
</style>
<script type=”text/javascript”>
function hideOverlay() {
document.getElementById(‘overlayVid’).innerText = ”;
document.getElementById(‘overlayVid’).style.display = ‘none’;
}
</script>
</head>
<div class=”containerDiv”>
<object width=”560″ height=”340″ class=”mainVid”><param name=”movie” value=”http://www.youtube.com/v/YPyYLh-umX0&hl=en_US&fs=1&”></param><param name=”allowFullScreen” value=”true”><param name=”wmode” value=”opaque”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/YPyYLh-umX0&hl=en_US&fs=1&” type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”560″ height=”340″ wmode=”opaque” ></embed></object>
<div class=”overlayVid” id=”overlayVid”>
ADVERTISEMENT CODE
<div class=”hideLink”><a href=”javascript:hideOverlay()”>Hide</a></div>
<div>
</div>
As you can see this is a video overlay code.The problem with it is that only works with this embed code,wich means i have to change everytime the youtube link on the code(because it does not work with the original one).If i try to put there the original code the hide link doesnt show up and people can’t close the advertisement window.What i need is somebody who modificates this code that i can put there any kind of html code(iframe,javascript….)and the hide link still shows up.If You have already a working code like this i will accept that.