الويب العربي

الويب العربي (http://www.arabwebtalk.com/index.php)
-   تطويرالمواقع (http://www.arabwebtalk.com/forumdisplay.php?f=47)
-   -   كود الاعلان المتنقل في المنتدى (http://www.arabwebtalk.com/showthread.php?t=89033)

المطورون العرب 29-07-2008 04:32 AM

كود الاعلان المتنقل في المنتدى
 
كود الاعلان المتنقل المتحرك

بكافة اقسام المنتدى


طبعا يضاف على القالب

الهيدر


كود PHP:

<!-- ccss3 بداية اعلان متحرك  --> 


</script> <title>ملتقى العشاق</title> </head> <body>  <a name="top"></a>  <div id="img" style="position:absolute;">  
    <a target="_blank" href="http://www.ccss3.com/vb">  
    <img style="cursor:hand" src="http://www.ccss3.com/taha.gif" border="0" width="150" height="60"></a> </div> <SCRIPT LANGUAGE="JavaScript"> 
<!-- Original:  Justin Arruda (ضع ايميل) --> 
<!-- This script and many more are available free online at --> 
<!-- The JavaScript Source!! http://javascript.internet.com --> 
<!-- Begin 
var step = 1; 
var delay = 30; 
var height = 0; 
var Hoffset = 0; 
var Woffset = 0; 
var yon = 0; 
var xon = 0; 
var pause = true; 
var interval; 
var name = navigator.appName; 
if(name == "Microsoft Internet Explorer") name = true; 
else name = false; 
var xPos = 20; 
if(name) var yPos = dcidcidocument.body.clientHeight; 
else var yPos = window.innerHeight; 
function changePos() { 
if(name) { 
width = dcidcidocument.body.clientWidth; 
height = dcidcidocument.body.clientHeight; 
Hoffset = img.offsetHeight; 
Woffset = img.offsetWidth; 
img.style.left = xPos + dcidcidocument.body.scrollLeft; 
img.style.top = yPos + dcidcidocument.body.scrollTop; 

else { 
height = window.innerHeight; 
width = window.innerWidth; 
Hoffset = dcidcidocument.img.clip.height; 
Woffset = dcidcidocument.img.clip.width; 
dcidcidocument.img.pageY = yPos + window.pageYOffset; 
dcidcidocument.img.pageX = xPos + window.pageXOffset; 

if (yon) { 
yPos = yPos + step; 

else { 
yPos = yPos - step; 

if (yPos < 0) { 
yon = 1; 
yPos = 0; 

if (yPos >= (height - Hoffset)) { 
yon = 0; 
yPos = (height - Hoffset); 

if (xon) { 
xPos = xPos + step; 

else { 
xPos = xPos - step; 

if (xPos < 0) { 
xon = 1; 
xPos = 0; 

if (xPos >= (width - Woffset)) { 
xon = 0; 
xPos = (width - Woffset); 


function start() { 
if(name) img.visibility = "visible"; 
else dcidcidocument.img.visibility = "visible"; 
interval = setInterval('changePos()',delay); 

function pauseResume() { 
if(pause) { 
clearInterval(interval); 
pause = false; 

else { 
interval = setInterval('changePos()',delay); 
pause = true; 


start(); 
//  End --> 
</script>  
<!-- ccss3.com نهاية اعلان متحرك  --> 

ارجوا ان تستفيدوا


جميع الأوقات بتوقيت مكة المكرمة. الساعة الآن » 02:19 AM.

Powered by vBulletin
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © ArabWebTalk.Com 2004-2012