Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 8:28 on August 25, 2006

The primary problem floating advertising code

Which friends ah? !

Too many varieties floating advertisements, the flash is below :

[html]

"Script language=" JavaScript ""
Var rightbar;
Var coupletcode;
Rightbar = window.screen.width-140;

Coupletcode = "" Historic Significance of the Transitional Budget par id=sidebar 'absolute; TOP LEFT : 0px; POSITION : :

100px; VISIBILITY : hidden; 'width=117>32</div><DIV id=sidebar2 Historic Significance of the Transitional Budget' LEFT :

"Rightbar + +" px; absolute; TOP POSITION : : 100px; VISIBILITY : hidden '

Width=117>32</div> ";

If (window.screen.width>=1024)
{
Document.write (coupletcode);
}

InsertCouplet function ()
{
If (window.screen.width>=1024) (
Document.all.sidebar.style.visibility = "visible";
Document.all.sidebar2.style.visibility = "visible";
Document.all.sidebar.innerHTML = "" OBJECT classid=clsid:D27CDB6E-AE6D-11cf-

96B8-444553540000

Codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab

#version=6,0,0,0 WIDTH=117 HEIGHT=270 id=leftFF ALIGN=> "PARAM NAME=movie

VALUE=http://images.sohu.com/cs/button/youpai/120270812b.swf?

Clickthru=http://goto.sohu.com/goto.php3?code=youpai-sh47-frduilian> "PARAM

NAME=quality VALUE=high><PARAM NAME=wmode VALUE=transparent> "EMBED

Id=leftFFG src=http://images.sohu.com/cs/button/youpai/120270812b.swf?

Clickthru=http://goto.sohu.com/goto.php3?code=youpai-sh47-frduilian

Quality=high wmode=transparent WIDTH=117 HEIGHT=270 NAME=you ALIGN=

TYPE=application/x-shockwave-flash

PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED></OBJECT> ";
Document.all.sidebar2.innerHTML = "" OBJECT classid=clsid:D27CDB6E-AE6D-11cf

-96B8-444553540000

Codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab

#version=6,0,0,0 WIDTH=117 HEIGHT=270 id=youFF ALIGN=> "PARAM NAME=movie

VALUE=http://images.sohu.com/cs/button/youpai/120270812b.swf?

Clickthru=http://goto.sohu.com/goto.php3?code=youpai-sh47-frduilian> "PARAM

NAME=quality VALUE=high> "PARAM NAME=wmode VALUE=transparent><EMBED

Id=youFFG src=http://images.sohu.com/cs/button/youpai/120270812b.swf?

Clickthru=http://goto.sohu.com/goto.php3?code=youpai-sh47-frduilian

Quality=high wmode=transparent WIDTH=117 HEIGHT=270 NAME=you ALIGN=

TYPE=application/x-shockwave-flash

PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED></OBJECT> ";

}
}

InsertCouplet ();
Function leftFFG_DoFSCommand (command, args) (
If ((command ====== "SohuCLFS") & (args ====== "hidecouplet")) (
Document.all.sidebar.style.visibility = "hidden";
Document.all.sidebar2.style.visibility = "hidden";
}
}
Function youFFG_DoFSCommand (command, args) (
LeftFFG_DoFSCommand (command, args);
}
<!--
If (document.all) (
Document.write ( "" Script language=\ "JavaScript\" For=\ "youFF\"

Event=\ "FSCommand (command, args) \" "\n");
Document.write ( "leftFFG_DoFSCommand (command, args) ;\n");
Document.write ( "" /Script>\n ");
Document.write ( "" Script language=\ "JavaScript\" For=\ "leftFF\"

Event=\ "FSCommand (command, args) \" "\n");
Document.write ( "leftFFG_DoFSCommand (command, args) ;\n");
Document.write ( "" /Script>\n ");
}
//-->
"/script>
[/html]

This is rolling on both sides of the rolling action with the code!
"SCRIPT language=" JavaScript "type=" text/javascript ""
Var delta=0.15
Var collection;
Floaters function () (
This.items = [];
This.addItem = function (ie, x, y, content)
                 {
Document.write ( ' "par filled="f"' +id+ 'Historic Significance of the Transitional Budget" Z-INDEX POSITION : absolute; width:80px; height:60px;left : : 10; '+ (typeof (x) ======' string '?eval (x) : x) +' ;top : '+ (typeof (y) ======' string '?eval (y) : y) +' "" '+content+' "/DIV> ');
                    
Var = {}; newItem
NewItem.object = document.getElementById (id);
NewItem.x = X :
NewItem.y = 73A

This.items[this.items.length] = newItem;
                 }
This.play = function ()
                 {
Collection = this.items
SetInterval ( 'play ()', 10);
                 }
        }
Function play ()
        {

For (var i=0;i<collection.length;i++)
            {
Var = collection[i].object; followObj
Var followObj_x = (typeof (collection[i].x) ====== 'string' ?eval (collection[i].x) : collection[i].x);
Var followObj_y = (typeof (collection[i].y) ====== 'string' ?eval (collection[i].y) : collection[i].y);

If (followObj.offsetLeft!= (document.body.scrollLeft+followObj_x)) (
Var dx = (document.body.scrollLeft+followObj_x-followObj.offsetLeft) *delta;
Dx = (dx>0?1:-1) *Math.ceil (Math.abs (dx));
FollowObj.style.left=followObj.offsetLeft+dx;
                    }

If (followObj.offsetTop!= (document.body.scrollTop+followObj_y)) (
Var dy= (document.body.scrollTop+followObj_y-followObj.offsetTop) *delta;
Dy= (dy>0?1:-1) *Math.ceil (Math.abs (dy));
FollowObj.style.top=followObj.offsetTop+dy;
                    }
FollowObj.style.display = '';
            }
        }   
        
Var theFloaters = new floaters ();
TheFloaters.addItem ( 'followDiv1,' 'document.body.clientWidth-110', 200, ' "a href=http : //www.now.net.cn target=_blank><img src=http : //b.todayisp.com/100x100_now.gif width=100 height=100 border=0></a><br><br><a href=http : //www.idc2012.com/index2.asp target=_blank><img src=http : //b.todayisp.com/100x100_now.gif width=100 height=100 border=0></a><br> ');
TheFloaters.addItem ( 'followDiv2' 10,200, ' "a href=http://www.6661.com target=_blank><img src=http : //www.6661.com/qz158/7866.gif width=100 height=100 border=0></a><br><br><a href=http : //ad.114.com.cn/mycodes.html target=_blank><img src=http : //b.todayisp.com/100x100_now.gif width=100 height=100 border=0></a><br> ');
TheFloaters.play ();

"/SCRIPT>

Boss, who are not rolling with a rolling of the right-ah? Please help the younger bars, thank you

A couple of days ago I made such a message, too. You look for bars

[code]<html><SCRIPT LANGUAGE= "JavaScript" "
"Goes To Begin
Var isNS = ((navigator.appName ====== "Netscape") & (parseInt (navigator.appVersion) "= 4));
Var _all = '';
_style Var = '';
Var wwidth, wheight;
Ydir var = '+';
Var xdir = '+';
Var id1, id2, id3;
Var x = 1;
Var y = 1;
Var x1, y1;
If (!isNS) (
_all= 'All. ';
_style= '. Style ';
}
Getwindowsize function () (
ClearTimeout (id1);
ClearTimeout (id2);
ClearTimeout (id3);
If (isNS) (
Wwidth = window.innerWidth - 55;
Wheight = window.innerHeight-50;
) Else (
Wwidth = document.body.clientWidth - 55;
Wheight = document.body.clientHeight-50;
}
Id3 = setTimeout ( 'randomdir ()', 20000);
Animate ();
}
Randomdir function () (
If (Math.floor (Math.random () * 2)) (
(Math.floor (Math.random () * 2))? Xdir= '--' : xdir= '+ +';
) Else (
(Math.floor (Math.random () * 2))? Ydir= '--' : ydir= '+ +';
}
Id2 = setTimeout ( 'randomdir ()', 20000);
}
Function animate () (
Eval ( 'x' +xdir);
Eval ( 'y' +ydir);
If (isNS) (
Pic1.moveTo ((x+pageXOffset), (y+pageYOffset))
) Else (
Pic1.pixelLeft = x+document.body.scrollLeft;
Pic1.pixelTop = y+document.body.scrollTop;
}
If (isNS) (
If (pic1.top "= 5+pageYOffset) ydir = '+';
If (pic1.top "= wheight+pageYOffset) ydir = '--';
If (pic1.left "= wwidth+pageXOffset) xdir = '--';
If (pic1.left "= 5+pageXOffset) xdir = '+';
) Else (
If (pic1.pixelTop "= 5+document.body.scrollTop) ydir = '+';
If (pic1.pixelTop "= wheight+document.body.scrollTop) ydir = '--';
If (pic1.pixelLeft "= wwidth+document.body.scrollLeft) xdir = '--';
If (pic1.pixelLeft "= 5+document.body.scrollLeft) xdir = '+';
}
Id1 = setTimeout ( 'animate ()', 30);
}
4003rd End Guangzhou Trade Fair
"/script>

"Assume filled="f"" pic1 "Historic Significance of the Transitional Budget" position:absolute; visibility:visible; left:0px; top:0px; z-index:-1 ""
"<img Defended" tp2.gif "border" 0 ""
"/div>

"Script language=" Javascript ""
Var pic1=eval ( 'document. '+_all+' Pic1 '+_style);
"/script>


"Body OnLoad=" getwindowsize () "OnResize=" getwindowsize () "and" [/code]
See this is not what you want the

With the right roll of the flash rolling :
[html]
"Script>
Function heartBeat (param) (
DiffY=document.body.scrollTop;
Percent=.1* (diffY-lastScrollY);
If (percent>0) percent=Math.ceil (BNHI);
Else percent=Math.floor (BNHI);
For (i=0;i<param.length;i++)
Document.all (param[i]). Style.pixelTop+=percent;
LastScrollY=lastScrollY+percent;
}
Document.write ( "" Historic Significance of the Transitional Budget par id=menu2 'POSITION:absolute;TOP:10px;right:5px; ' "<a href=\" \ "onClick=\" document.all (' menu2 '). style.display= 'none' ;return false;\ "style=\" font-size:10pt; background-color=#ffffff\ "" [closed] "/a><br><object classid=\" clsid : D27CDB6E-AE6D-11cf-96B8-444553540000\ "codebase=\" http : //download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29. 0\ "width=\" 110\ "height=\" 170\ "" "param name=\" movie\ "value=\" http : //www.blueidea.com/img/flash/pages_nav.swf\ "" "param name=\" quality\ "value=\" high\ "src=\" "embed" http : //www.blueidea.com/img/flash/pages_nav.swf\ "quality=\" high\ "pluginspage=\" http : //www.macromedia.com/go/getflashplayer\ "type=\" application/x-shockwave-flash\ "width=\" 110\ "height=\" 170\ "name=\" mb_sell\ "swLiveConnect=\" true\ "" </embed></object></div> ");
LastScrollY=0;
Var paramArray;
ParamArray = new Array ( "menu2");
Window.setInterval ( "heartBeat (paramArray)," 10);
"/script>
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference
"Organization Department Holds Press Conference


[/html]

The closure has also brought upstairs function
Yes Yes
Collection

Like how ultimate users will be able to apply the same "operational code" of the film ah, we will put it in your loom pasted inside the debugging code, how to use in the end, I would like to thank the

UBB code there to help


[html]
"Br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> "br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
"SCRIPT LANGUAGE=" JavaScript ""
Var delta=0.15
Var collection;
Floaters function () (
This.items = [];
This.addItem = function (ie, x, y, content)
                                  {
Document.write ( ' "par filled="f"' +id+ 'Historic Significance of the Transitional Budget" Z-INDEX POSITION : absolute; width:80px; height:60px;left : : 10; '+ (typeof (x) ======' string '?eval (x) : x) +' ;top : '+ (typeof (y) ======' string '?eval (y) : y) +' "" '+content+' "/DIV> ');
                                       
Var = {}; newItem
NewItem.object = document.getElementById (id);
NewItem.x = X :
NewItem.y = 73A

This.items[this.items.length] = newItem;
                                  }
This.play = function ()
                                  {
Collection = this.items
SetInterval ( 'play ()', 10);
                                  }
                }
Function play ()
                {

For (var i=0;i<collection.length;i++)
                        {
Var = collection[i].object; followObj
Var followObj_x = (typeof (collection[i].x) ====== 'string' ?eval (collection[i].x) : collection[i].x);
Var followObj_y = (typeof (collection[i].y) ====== 'string' ?eval (collection[i].y) : collection[i].y);

If (followObj.offsetLeft!= (document.body.scrollLeft+followObj_x)) (
Var dx = (document.body.scrollLeft+followObj_x-followObj.offsetLeft) *delta;
Dx = (dx>0?1:-1) *Math.ceil (Math.abs (dx));
FollowObj.style.left=followObj.offsetLeft+dx;
                                        }

If (followObj.offsetTop!= (document.body.scrollTop+followObj_y)) (
Var dy= (document.body.scrollTop+followObj_y-followObj.offsetTop) *delta;
Dy= (dy>0?1:-1) *Math.ceil (Math.abs (dy));
FollowObj.style.top=followObj.offsetTop+dy;
                                        }
FollowObj.style.display = '';
                        }
                }       
               
Var theFloaters = new floaters ();
TheFloaters.addItem ( 'followDiv1,' 'document.body.clientWidth-110', 300, ' "a href=http : //www.blueidea.com target=_blank><img src=http : //b.todayisp.com/100x100_now.gif width=100 height=100 border=0></a><br><br><a href=http : //www.blueidea.com target=_blank><img src=http : //b.todayisp.com/100x100_now.gif width=100 height=100 border=0></a><br> ');
TheFloaters.addItem ( 'followDiv2' 10,300, ' "a href=http://www.blueidea.com target=_blank><img src=http : //www.6661.com/qz158/7866.gif width=100 height=100 border=0></a><br><br><a href=http : //www.blueidea.com target=_blank><img src=http : //b.todayisp.com/100x100_now.gif width=100 height=100 border=0></a><br> ');
TheFloaters.play ();
"/script>
[/html]

Weighs, the room is not occupied


[code][html]
"Br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> "br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
"SCRIPT LANGUAGE=" JavaScript ""
Var delta=0.15
Var collection;
Floaters function () (
This.items = [];
This.addItem = function (ie, x, y, content)
                                  {
Document.write ( ' "par filled="f"' +id+ 'Historic Significance of the Transitional Budget" Z-INDEX POSITION : absolute; width:80px; height:60px;left : : 10; '+ (typeof (x) ======' string '?eval (x) : x) +' ;top : '+ (typeof (y) ======' string '?eval (y) : y) +' "" '+content+' "/DIV> ');
                                       
Var = {}; newItem
NewItem.object = document.getElementById (id);
NewItem.x = X :
NewItem.y = 73A

This.items[this.items.length] = newItem;
                                  }
This.play = function ()
                                  {
Collection = this.items
SetInterval ( 'play ()', 10);
                                  }
                }
Function play ()
                {

For (var i=0;i<collection.length;i++)
                        {
Var = collection[i].object; followObj
Var followObj_x = (typeof (collection[i].x) ====== 'string' ?eval (collection[i].x) : collection[i].x);
Var followObj_y = (typeof (collection[i].y) ====== 'string' ?eval (collection[i].y) : collection[i].y);

If (followObj.offsetLeft!= (document.body.scrollLeft+followObj_x)) (
Var dx = (document.body.scrollLeft+followObj_x-followObj.offsetLeft) *delta;
Dx = (dx>0?1:-1) *Math.ceil (Math.abs (dx));
FollowObj.style.left=followObj.offsetLeft+dx;
                                        }

If (followObj.offsetTop!= (document.body.scrollTop+followObj_y)) (
Var dy= (document.body.scrollTop+followObj_y-followObj.offsetTop) *delta;
Dy= (dy>0?1:-1) *Math.ceil (Math.abs (dy));
FollowObj.style.top=followObj.offsetTop+dy;
                                        }
FollowObj.style.display = '';
                        }
                }       
               
Var theFloaters = new floaters ();
TheFloaters.addItem ( 'followDiv1,' 'document.body.clientWidth-110', 300, ' "a href=http : //www.blueidea.com target=_blank><img src=http : //b.todayisp.com/100x100_now.gif width=100 height=100 border=0></a><br><br><a href=http : //www.blueidea.com target=_blank><img src=http : //b.todayisp.com/100x100_now.gif width=100 height=100 border=0></a><br> ');
TheFloaters.addItem ( 'followDiv2' 10,300, ' "a href=http://www.blueidea.com target=_blank><img src=http : //www.6661.com/qz158/7866.gif width=100 height=100 border=0></a><br><br><a href=http : //www.blueidea.com target=_blank><img src=http : //b.todayisp.com/100x100_now.gif width=100 height=100 border=0></a><br> ');
TheFloaters.play ();
"/script>
[/html][/code]

DX and you ask wzw2004

Wzw2004
Why do I use your code in the local band when shown on the website will not! ? ? ?




 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com