Flash scrolling in the Web page of the Couplet advertising source [amendment]

Source: Internet
Author: User
Tags eval join split visibility
Couplet | couplet | Web page I used to be a fake close.

is to click Off and let the movie run to a blank frame! Then change the Flash movie's properties and values to:

Wmode
Transparent

But there's no real implementation off! Later in the study of a website (I also remember) the code!
It just dawned!


I will explain the following in detail! Don't understand the place to give me a message OK!
The idea is to add layers to the Web page. The properties of the layer are: hidden
If you add a button in Flash to hide the layer! Add the Falsh film to the layer. Isn't the effect we're trying to achieve?

We proceed to the first step:
Add the following code to your Web page:

<script language=javascript Event=fscommand () for=c114l>floater.style.visibility= ' hidden ';</SCRIPT>
<script language=javascript Event=fscommand () for=c1142>floater1.style.visibility= ' hidden ';</SCRIPT>

Step Two:
To make a flash inside the Flash Close button code is as follows:

On (release)
{
GetURL ("Fscommand:");
}


Step Three:
This step is very important!
Please look at the following code and usually we add flash code in the Web page difference!
First we join a layer!
The ID of the layer is floater (why is this name!) Take a look at the top two lines of Java code and you'll see.

And then join the flash! on this layer.
All of the above for the Web page Flash code! Is it a lot less than usual?

<embed src= ' http://www.webjx.com/htmldata/2007-01-26/33.swf ' width=116 height=300 id=c1142></embed>

OK, save the test! :)

In this article only write Flash off! For the layer scrolling and positioning of the advertisement, please continue reading:

<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">

<body topmargin= "0" marginwidth= "0" >
<script language=javascript src= "Js/menus.js" ></script>
<script language=javascript Event=fscommand () for=c114l>floater.style.visibility= ' hidden ';</SCRIPT>
<script language=javascript Event=fscommand () for=c1142>floater1.style.visibility= ' hidden ';</SCRIPT>
<div id=floater1 style= "Z-INDEX:100; visibility:visible; width:115px; Position:absolute; top:236px; left:0px; height:150px; " >
<div align= "center" >
<embed src= ' http://www.webjx.com/htmldata/2007-01-26/swf/duilian.swf ' Quality=high wmode=opaque width=100 HEIGHT =150 type= ' Application/x-shockwave-flash ' id=c1142></embed>
</div>
</DIV>


<div Id=floater
Style= "Z-INDEX:100; right:0px; visibility:visible; width:110; Position:absolute; top:236; height:150px; " >
<div align= "center" >
<embed src= ' http://www.webjx.com/htmldata/2007-01-26/swf/duilian.swf ' Quality=high wmode=opaque width=100 HEIGHT =150 type= ' Application/x-shockwave-flash ' id=c114l></embed>
</div>
</DIV>


<p>
</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</body>

menus.js File:
Self.onerror = null;
CurrentX = CurrentY = 0;
Whichit = null;
LASTSCROLLX = 0; lastscrolly = 0;
NS = (document.layers)? 1:0;
IE = (document.all)? 1:0;

<!--Stalker CODE-->
function HeartBeat (objectid) {
if (IE) {diffy = Document.body.scrollTop; diffx = Document.body.scrollLeft;}
if (NS) {diffy = Self.pageyoffset; diffx = Self.pagexoffset;}
if (Diffy!= lastscrolly) {
Percent =. 1 * (diffy-lastscrolly);
If (Percent > 0) percent = Math.ceil (percent);
else percent = Math.floor (percent);
if (IE) {
Objectid = Objectid.split (";");
for (i = 0; i < objectid.length i++) eval ("document.all.") +objectid[i]). Style.pixeltop + = percent;
}
if (NS) {
Objectid = Objectid.split (";");
for (i = 0; i < objectid.length i++) eval ("document.") +objectid[i]). Top + = percent;
}
lastscrolly = lastscrolly + percent;
}
if (diffx!= lastscrollx) {
Percent =. 1 * (DIFFX-LASTSCROLLX);
If (Percent > 0) percent = Math.ceil (percent);
else percent = Math.floor (percent);
if (IE) {
Objectid = Objectid.split (";");
for (i = 0; i < objectid.length i++) eval ("document.all.") +objectid[i]). Style.pixelleft + = percent;
}
if (NS) {
Objectid = Objectid.split (";");
for (i = 0; i < objectid.length i++) eval ("document.") +objectid[i]). Left + = percent;
}
LASTSCROLLX = lastscrollx + percent;
}
}
<!--/stalker CODE-->

if (NS | | IE) action = Window.setinterval ("heartBeat (' Floater1;floater2 ')", 2);

code for the SWF file button:
On (release)
{
GetURL ("Fscommand:");
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.