Toon posts:

javascript animated window (2)

Pagina: 1
Acties:
  • 38 views sinds 30-01-2008

Verwijderd

Topicstarter
Dit wil ik even delen...
Cheatah:
Okay, en voortaan iets meer eigen inzet graag, want het komt er nu op neer dat je er zelf niks aan hebt gedaan, en alleen hebt gewacht op antwoord.
Meer eigen inzet 8-):


<html>
<head>


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="A1javascripts">
<meta name="GENERATOR" content="Mozilla/4.73 [en] (Win98; I) [Netscape]">
<meta name="Description" content="This script will resize your browser window on opening.">
<meta name="KeyWords" content="script, java, javascript, window, resize">
<title>Example of Mal's Window Resize Script</title>
<link REL="SHORTCUT ICON" HREF="http://www.jongehelden.com/favicon.ico">
<script LANGUAGE="JavaScript">
<!-- Hide code from non-js browsers
function newItem(expiryDate)
{
exp = new Date(expiryDate);
cur = new Date();
if (cur.getTime() < exp.getTime())
document.write("[img]\"/images/new.gif\"[/img]" );
}
// end hiding -->
</script>
<script>
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}
</script>
<style>

a:link { text-decoration: none; color:#E0F664; }
a:visited { text-decoration: none; color:#E0F664; }
a:hover { text-decoration: underline; color:#ffffff; }
A.menu:LINK {
font-family : Verdana, Arial, Helvetica, sans-serif; font-size : 0.6pc; color : #E0F664;}
</style>
<script language="JavaScript">

<!--

//by Malachy Magennis: mal_bmx@hotmail.com

//submitted and presented on A1 javaScripts: www.a1javascripts.com



function TB_animateWindow(windowWidth,windowHeight,targetWidth,targetHeight,widthMod,heightMod,fullScreen)

{

if (fullScreen)

{

targetWidth = screen.availWidth;

targetHeight = screen.availHeight;

}

if (windowWidth < targetWidth) windowWidth += widthMod;

if (windowHeight < targetHeight) windowHeight += heightMod;

windowLeft = (screen.availWidth / 2) - (windowWidth / 2);

windowTop = (screen.availHeight / 2) - (windowHeight / 2);

top.window.resizeTo(windowWidth,windowHeight);

top.window.moveTo(windowLeft,windowTop);

if (windowWidth < targetWidth || windowHeight < targetHeight)setTimeout('TB_animateWindow(' + windowWidth + ', ' + windowHeight + ', ' + targetWidth + ', ' + targetHeight + ', ' + widthMod + ', ' + heightMod + ', ' + fullScreen + ');',10);

}

function MM_findObj(n, d) { //v4.0

var p,i,x;

if(!d) d=document;

if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);

}

if(!(x=d[n])&&d.all) x=d.all[n];

for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

if(!x && document.getElementById) x=document.getElementById(n);

return x;

}

//-->

</script>
</head>
<BODY bgColor=#55698a leftMargin=0 text=#ffffff topMargin=0 marginheight="0" marginwidth="0" link="#E0F664" vlink="#E0F664" alink="#E0F664" onLoad="TB_animateWindow(20,20,690,495,30,30,false)">
<!---[Begin TOPBODY]--->
<div align="center">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" bgcolor="#FF0000">[img]"splashscreen.jpg"[/img]
</td>
</tr>
</table>
</div>

</body>
</html>

  • Bosmonster
  • Registratie: Juni 2001
  • Laatst online: 29-08 19:47

Bosmonster

*zucht*

Fijn dank je wel ;)

Als je nu ook nog de daar voor bedoelde [ script ] tags gebruikt zijn we helemaal happy..

Dit topic is gesloten.