|
can anyone provide me a script please,
that makes it possible to view an image sliding over your homepage
this should be an image I allready got
also, their needs to be a link behind that image like
a href = " ..."
ps : this image needs a usemap I think, because on the right top of this image,
their needs to be the wellknown X to close the popup window layer
any idea?
I tried google, but couldn't find anything
if necessary I will pay for the script,
because unfortunately, we need a working script by the end of Friday :'(
thanks in advance :/
|
|
|
allé hup, na een paar uur google werk, dan toch eentje gevonden die redelijk goed werkt
in de head moet ik het volgende kopieren :
[PHP]<script type="text/javascript">
function hideAd(divId)
{ if (document.layers) document.layers[divId].visibility = 'hide';
else if (document.all) document.all[divId].style.visibility = 'hidden';
else if (document.getElementById) document.getElementById(divId).style.visibility = 'hidden';
}
function adDown(divId)
{ state=typeof topPos;
if(state=='undefined') topPos=-260;
if(topPos < 75)
{ topPos+=3;
if (document.layers) document.layers[divId].top = topPos;
else if (document.all) document.all[divId].style.top = topPos;
else if (document.getElementById) document.getElementById(divId).style.top = topPos;
setTimeout("adDown('pop');",25);
}
}
</script>
[/PHP]
en in body :
[PHP]<script type="text/javascript">
if (parseInt(navigator.appVersion) >= 4 && navigator.javaEnabled())
{ document.write('<div id="pop" style="position:absolute;top:-260;">');
document.write('<table cellpadding="0" cellspacing="2" bgcolor="#7FA3C7" border="0"><tr><td><table cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" border="0">');
document.write('<tr><td align="right" height="24"><a href="javascript:void(0)" onclick="hideAd(\'pop\')"><img src="/images/close1.jpg" border="0"></a></td></tr>');
document.write('<tr><td align="center"><a href="http://www.google.be"><img src="/images/special.jpg" border="0" alt="0"></a></td></tr>');
document.write('</table></td></tr></table>');
document.write('</div>');
if (document.layers) document.layers.pop.left = ((window.innerWidth / 2) - (630 / 2));
else if (document.all) document.all.pop.style.left = ((document.body.offsetWidth / 2) - (630 / 2));
else if (document.getElementById) document.getElementById("pop").style.left = ((window.innerWidth / 2) - (630 / 2));
}
</script>
[/PHP]
kan er iemand deze code wijzigen, zodanig dat die foto over het scherm loopt?
je weet wel, zo van bovenaan tot bijvoorbeeld 50pixels margin tov _top ?
nu heb ik een layer, thank god !
maar misschien kan ik er hem nog laten [I]overvloeien[/I]
iemand? :$
|
|
|
|
|
|
|
|