Computer Iso
Would you like to react to this message? Create an account in a few clicks or log in to continue.

popup test

Go down

popup test Empty popup test

Post  Admin Fri Aug 22, 2008 1:34 pm

[code]
<br /><!--MOVING POP-UP--><br /><br /><!-- This goes in the HEAD of the html file --><br /><br /><scr&#105;pt language="Javascr&#105;pt" type="text/javascr&#105;pt"><br /><!-- Copyright 2002, Sandeep Gangadharan --><br /><!-- For more free scr&#105;pts go to <a href="http://sivamdesign.com/scr&#105;pts/" target="_blank" rel="nofollow">http://sivamdesign.com/scr&#105;pts/</a> --><br /><br /><!--<br />function movingWin() {<br />CW=window.open('moving.html','NewWin','toolbar=no,menubar=no,location=no,resizable=no,status=no,width=350,height=135,scrollbars=no')<br /> // change the figures of width and height above to customize the size of the window to be opened.<br />CW.moveTo(10,10); // change the numbers in the brackets on the left to first open the pop-up in the desired position<br /> // these co-ordinates should be in sync with the co-ordiantes in the pop-up window as explaned below<br /> }<br />// --><br /><br /></scr&#105;pt><br /><br /><!-- This goes in the BODY of the html file --><br /><br /><a href="javascr&#105;pt:movingWin();">Click</a> to open small window.<br /><br /><br /><!-- ======================================================================================= --><br /><br /><!-- This goes in the HEAD of the html file that shall be the moving pop-up --><br /><!-- This file should be named 'moving.html' --><br /><br /><scr&#105;pt language="Javascr&#105;pt" type="text/javascr&#105;pt"><br /><!-- Copyright 2002, Sandeep Gangadharan --><br /><!-- For more free scr&#105;pts go to <a href="http://sivamdesign.com/scr&#105;pts/" target="_blank" rel="nofollow">http://sivamdesign.com/scr&#105;pts/</a> --><br /><br /><!--<br />var mov1 = 1; // the number on the left is the x co-ordinate<br />var mov2 = 1; // the number on the left is the y co-ordinate<br /> // users can adjust the numbers to move the pop-up in different directions<br /><br />function moveWin() {<br /> mov1++; // change the ++ on the left to -- in order to make the pop-up scroll backwards<br /> mov2++;<br /><br /> moveTo(mov1,mov2);<br /> SD=window.setTimeout("moveWin();", 10); // the movement of the pop-up can be speeded up or<br /> // slowed down by changing the number 10 in the round<br /> // brackets on the left. the higher the number the<br /> // slower the movement<br /><br /> if (mov1==200) { window.clearTimeout(SD); } // the movement of the window can be stopped at any<br /> // given place by changing the number 200 in the<br /> // round brackets on the left<br /> }<br /><br />// --><br /></scr&#105;pt><br /><br /><!-- This is the scr&#105;pt to be included in the BODY tag --><br /><br /><!--Note the addition to the BODY tag--><br /><br /><body &#111;nL&#111;ad="moveWin();"><br />

Admin
Admin

Posts : 9
Join date : 2008-07-24

https://pciso.board-directory.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum