Joke Collection Website - News headlines - Master FLASH, do you know how to make an advertisement scroll on the website?
Master FLASH, do you know how to make an advertisement scroll on the website?
& ltmeta“/& gt;
& ltmeta name =“Copyright“content =“Copyright(c)jscode . cn“/& gt。
& ltlink rel =“icon“href =“/favicon . ico“type =“image/x-icon“media =“screen“/& gt。
& ltlink rel= "shortcut icon" href = "/favicon.ico" type = "image/x-icon" media = "screen"/>.
& lt meta name = "description" content = "webpage special effects" />.
& lt meta name = "keywords" content = "webpage special effects, webpage special effects code"/>
& lt! -Website title->
& lttitle & gt random rotation switching effect of home page advertisement pictures of stations such as Paipai, Taobao and Yi Bei-webpage special effects |www.jscode.cn| webpage special effects code.
& ltstyle & gt
body {font-size: 12px}
img {border:0px}
# Push {
Width: 464px Background: URL ("images/pushbj.gif"); Height: 200
}
# Main push {
Width: 462px height:100px; Left margin:1px; Right margin: 1px
}
#linkPush {
Height: 35px Left padding: 1px
}
#linkPush A {
Display: block; Floating: left; Width: 60px Color: green; padding-top:8px; Height: 25px Text Alignment: Center; Text decoration: None
}
#linkPush A: hover {
Background: URL ("images/pushhere.gif"); Width: 75pxfont-size:12px; Font thickness: bold; Color: #ff6600
}
#linkPush A.linkPushHere {
Background: URL ("images/pushhere.gif"); Width: 75pxfont-size:12px; Font thickness: bold; Color: #ff6600
}
& lt/style & gt;
& lt/head & gt;
& ltbody & gt
& ltdiv id =“push“& gt。
& ltdiv id =“mainPush“& gt。
& lt/div & gt;
& ltdiv id =“link push“& gt。
& lt/div & gt;
& lt/div & gt;
& ltscript type =“text/JavaScript“& gt;
rnd . today = new Date();
rnd . seed = rnd . today . gettime();
Function rnd(){
rnd . seed =(rnd . seed * 930 1+49297)% 233280;
Return to rnd.seed/(233280.0);
}
Function rand (number)
return math . ceil(rnd()* number)- 1;
}
Var pushName= ["webpage special effects", "in the distance", "special effects view" and "webpage code"];
var push src =【“images/push 0 1 . jpg“、“images/push02.jpg“、“images/push03.jpg“、“images/push 04 . jpg“】;
var pushLink=【“““““““““““““【】
var push show =““;
Function showPushLink(num ){
If (! num & amp& ampnum! =0){
mainpushnum++;
if(mainPushNum & gt; 3)mainPushNum = 0;
num = mainPushNum
}
for(I = 0; I<4; i++){
document . getelementbyid(“link push“+I)。 class name =““;
}
document . getelementbyid(“link push“+num)。 class name =“linkPushHere“;
document . getelementbyid(“push img“)。 src = push src【num】;
document . getelementbyid(“pushim glink“)。 href = pushLink【num】;
document . getelementbyid(“push img“)。 alt = push name【num】;
}
//initialization
for(I = 0; I<4; i++){
push show+=‘& lt; a href =““+pushLink【I】+““onmouseover =“showPushLink(“+I+“); ‘clear interval(rollId)“id =“link push‘+I+‘“target =“_ blank“& gt; ‘+push name【I】+‘& lt; /a & gt; ‘;
}
document . getelementbyid(“link push“)。 innerHTML = pushShow
var mainPushNum = rand(4);
document . getelementbyid(“link push“+mainPushNum)。 class name =“linkPushHere“;
document . getelementbyid(“mainPush“)。 innerHTML =‘& lt; a href =“‘+pushLink【mainPushNum】+‘“target =“_ blank“id =“pushImgLink“onmouseover =“clear interval(rollId)“onmouseout =“showAtTime()“& gt; & ltimg src =““+push src【mainPushNum】+““name =“push img“width =“460“height =“ 165“id =“push img“alt =““+pushName【mainPushNum】+“/& gt; & lt/a & gt; ‘;
var rollId = setInterval(“showPushLink()“,2000); //Set the interval time
Function showAtTime(){
showPushLink();
rollId = setInterval(“showPushLink()“,2000); //Set the interval time
}
& lt/script & gt;
& ltp & gt& lt/p & gt;
& ltp> More web page special effects codes can be found at
& lt/body & gt;
& lt/html & gt;
Copy this code to htm.
Correct gif file name
- Related articles
- Why did Wenjiang Xuhui stop working?
- Construction engineering technology major-civil engineering, what knowledge does the position really need?
- Make sentences with mouse pads (about 30)
- Junior middle school English composition for protecting animals
- The most attractive milk tea advertising language
- Poster of 202 1 Energy Conservation Publicity Week —— What is the theme of 2021National Energy Conservation Publicity Week?
- What poems describe "terraced fields"?
- Water saving tips:
- Characteristics of English for young children
- Domineering rhyming slogans for school sports meeting entrance