هذا هو الكود يوضع فى التشكيلات العامة
<SCRIPT LANGUAGE='JavaScript'><!--
/*
* Visit our site at http://http://lover2012.own0.com// for more code
*/
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;
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();
}
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();
}
}
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();
}
}
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('test.html','300','200'); // http://www.paltimes.net/data/ads/1b0b8811cec891355a7a363c33be00af.gif
// --></SCRIPT>
تحياتى
<SCRIPT LANGUAGE='JavaScript'><!--
/*
* Visit our site at http://http://lover2012.own0.com// for more code
*/
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;
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();
}
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();
}
}
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();
}
}
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('test.html','300','200'); // http://www.paltimes.net/data/ads/1b0b8811cec891355a7a363c33be00af.gif
// --></SCRIPT>
تحياتى