PopUpKareCizen.html


<head>
<title>Bedavajava Açiklamali Link Script</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
</head>
<!-- Original: Ali AKYILDIRIM (
www.aliakyildirim.com ) -->

<!-- www.aliakyildirim.com -->
<!-- //start
//##########################################
// Author: Ali AKYILDIRIM (Bedavajava)
// For: public release (freeware)
// Date: 04/03/2012 |
www.aliakyildirim.com
//##########################################
//-->


<SCRIPT LANGUAGE=’JavaScript’>

var popUp = 0;
var popURL = 0;
var popWidth = 0;
var popHeight = 0;

var thisMargin = 10;

var popTopPosition = thisMargin;
var popLeftPosition = thisMargin;

var pause = 20;
var step = 10; // The higher the number, the faster the window.
var timer = 0;

var screenWidth = 0;
var screenHeight = 0;

var endX = 0;
var endY = 0;

function startPop(thisurl,thiswidth,thisheight) {
popURL = thisurl;
popWidth = thiswidth;
popHeight = thisheight;

popUp = window.open(popURL, "traveler","toolbar=no,width="+popWidth+",height="+popHeight+",top="+popTopPosition+",left="+(popLeftPosition)+"");

screenWidth = window.screen.width;
screenHeight = window.screen.height;
endX = screenWidth - thiswidth - thisMargin;
endY = screenHeight - thisheight - thisMargin;
movedown();
} //
www.aliakyildirim.com

function movedown() {
if (popTopPosition <= endY - 50) {
popUp.moveTo(popLeftPosition,popTopPosition);
popTopPosition += step;
timer = setTimeout("movedown()",pause);
}
else {
clearTimeout(timer);
popTopPosition = endY - 50;
popUp.moveTo(popLeftPosition,popTopPosition);
moveright();
} //www.aliakyildirim.com
}

function moveright() {
if (popLeftPosition <= endX) {
popUp.moveTo(popLeftPosition,popTopPosition);
popLeftPosition += step;
timer = setTimeout("moveright()",pause);
}
else {
clearTimeout(timer);
popLeftPosition = endX;
popUp.moveTo(popLeftPosition,popTopPosition);
moveup();
}
}
//Ali AKYILDIRIM
function moveup() {
if (popTopPosition >= thisMargin) {
popUp.moveTo(popLeftPosition,popTopPosition);
popTopPosition -= step;
timer = setTimeout("moveup()",pause);
}
else {
clearTimeout(timer);
popTopPosition = thisMargin;
popUp.moveTo(popLeftPosition,popTopPosition);
moveleft();
}
}

function moveleft() {
if (popLeftPosition >= thisMargin) {
popUp.moveTo(popLeftPosition,popTopPosition);
popLeftPosition -= step;
timer = setTimeout("moveleft()",pause);
}
else {
clearTimeout(timer);
popLeftPosition = thisMargin;
popUp.moveTo(popLeftPosition,popTopPosition);
}
}

startPop(’http://www.aliakyildirim.com/AliAKYILDIRIM_Projects/PopUpTest.html’,’400’,’150’);

// --></SCRIPT>


<!-- ******************************************************** -->
<!-- *
www.aliakyildirim.com - Ali AKYILDIRIM * -->
<!-- ******************************************************** -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!!
http://www.aliakyildirim.com -->

<!-- www.aliakyildirim.com -->




PopUpTest.html


<html>
<head>
<title> Yazilim ve Veritabani Hakkinda Hersey |
www.aliakyildirim.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
</head>

<body>
<table width="80%" align="center">
<tr>
<td width="75%" align="center" colspan="2">
<font color="red"><b>Yazilim ve Veritabani Hakkinda Hersey</b></font>
</td>
</tr>
<tr>
<td width="75%" align="center" colspan="2">

<a href="http://www.aliakyildirim.com" target="_blank"><font color="navy"><b>www.aliakyildirim.com</b></font></a>
</td>
</tr>
<tr>
<td width="75%" align="center" colspan="2">
<a href="
http://www.facebook.com/aliakyildirimcom" target="_blank"><font color="navy"><b>Facebook Sayfamiz</b></font></a>
</td>
</tr>
<tr>
<tr><td width="75%" align="center" colspan="2"></td></tr>
<tr><td width="75%" align="center" colspan="2"></td></tr>
<td width="75%" align="center" colspan="2">
<font color="black"><i>Desteklerinizi Bekliyoruz..</i></font>
</td>
</tr>
</table>
</body>
</html>