codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  DHTML : popup slider using image  DimitriDV at 09:31 on Thursday, February 01, 2007
 

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 :/

  Re: DHTML : popup slider using image  DimitriDV at 12:22 on Thursday, February 01, 2007
 

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? :$








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  close window
•  Passing Variable To js File
•  Re: Compiling JAVA code in .NET?
•  managed nd unmanaged code..
•  Looking for free form submit php script?
•  horizontal scroll of images
•  Re: DHTML : popup slider using image
•  Re: Java question - zoom/selection
•  Re: Login Box for a tab


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007