1. Constantly flashing images
flashing pictures [Modify the displayed picture and the link address followed by a total of 1 steps] 1, the following code is placed in a new page of the HTML <body></body> area can: [page must have nothing]
2. Photo Display selection
3, the image of the fade play
Fade playback of pictures [recommended] [according to the following instructions for a total of 3 steps, modify the name and path of the picture] The third step of the top:120px;left:240px can be set to display the location ====1, the following code into HEML 4, pinning the picture to the upper-left corner
Pin the picture to the top left corner of the page [1 steps according to the instructions] 1, add the following code to the Heml <body></body> <script language=javascript><!-- Hide the script from old browsers--//1) make a 88*31 logo. if (document.images) var staticlogo=new Image (88,31)//2) sets the path of the logo. staticlogo.src= "Name of the picture 1.gif"//3) The following is the connection of the logo. var logolink= "http://www.happydrips.com"//4) sets the Alt attribute. var alttext= "Happy drip"//5) Set the following properties for 1 or 0 (1 is IE-specific, so that the logo looming) var fadeintoview=1/* 6) Last set the time of the logo display, for example 12 seconds, the value of 0 means that the display has been */var visibleduration=12/////////////////////////do not change the/////////////////////////function regenerate () { Window.location.reload ()}function Regenerate2 () {if (document.layers) setTimeout ("Window.onresize=regenerate", 400) }var fadeset= "if (fadeintoview) fadeset=" Filter:alpha (opacity=0) "if (document.all) document.write (' <span id= ') Logo "style=" ' +fadeset+ ';p osition:absolute;top:100;width: ' +staticlogo.width+ '; height: ' +staticlogo.height+ ' " ></span> ') function Bringintoview () {if (logo.filters.alpha.opacity<=95) logo.filters.alpha.opacity+= 5else{clearintErval (Viewit) if (visibleduration!=0) setTimeout ("logo.style.visibility= ' hidden '", visibleduration*1000)}}function Createlogo () {staticimage=new Layer (+) Staticimage.left=-300staticimage.top=120staticimage.document.write (' < A href= "' +logolink+ '" ></a> ") Staticimage.document.close () staticimage.visibility= "show" Regenerate2 () Staticitns ()}if (document.layers) Window.onload=createlogo;if (document.all) {w=2h=2logo.style.left=wlogo.style.top=h}function logoit () {var w2= Document.body.scrollleft+wvar h2=document.body.scrolltop+hlogo.style.left=w2logo.style.top=h2}function Logoit2 () {staticimage.left=pagexoffset+2staticimage.top=pageyoffset+2}function insertimage () {logo.innerHTML= ' <a href= " ' +logolink+ ' "></a> ' if (fadeintoview) Viewit =setinterval ("Bringintoview ()", "Else{if" (visibleduration!=0) setTimeout ("logo.style.visibility= ' hidden '", visibleduration*1000)}}if (document.all) {window.onscroll=logoitwindow.onresize=new Function ("Window.location.reload ()") window.onload= Insertimage}function Staticitns () {setinterval ("logoit2 ()", "()" if (visibleduration!=0) setTimeout (" Staticimage.visibility= ' hide ', visibleduration*1000)}//--> </SCRIPT>
5, left and right pictures
Left and right pictures [modify image name] [Total 2 steps] 1, add the following code to HEML 6, Image presentation Scrolling bulletin Board
Image rolling Bulletin [suitable for the scrolling of the picture links] [very useful] [total 1 steps] 1, add the following code to the HEML <body></body>: <script language= "JavaScript1.2" > <!--/* Set the following parameters. Set the Scrollerwidth and Scrollerheight parameters, set to scroll to display the largest size in the picture. */var scrollerwidth=140var scrollerheight=40var scrollerbgcolor= ' white '//pause for 3 seconds between each diagram. var pausebetweenimages=3000//the line below the boundary, if you want the logo to be connected, just add the <a> tag. var slideimages=new Array () slideimages[0]= ' <a href= "index.htm" ></a > ' slideimages[1]= ' <a href= "index1.htm" ></a> ' slideimages[2]= ' <a href= "Index2.htm" ></a> ' slideimages[3]= ' <a href= "index3.htm" ></a>"//even though add more. Do not modify the following////////////////if (slideimages.length>1) i=2elsei=0function move1 (whichlayer) {Tlayer=eval ( Whichlayer) if (tlayer.top>0&&tlayer.top<=5) {tlayer.top=0settimeout ("move1 (Tlayer)", pausebetweenimages) SetTimeout ("Move2 (Document.main.document.second)", pausebetweenimages) RetuRn}if (tlayer.top>=tlayer.document.height*-1) {tlayer.top-=5settimeout ("move1 (Tlayer)", +)}else{tlayer.top= Scrollerheighttlayer.document.write (Slideimages[i]) tlayer.document.close () if (i==slideimages.length-1) i=0elsei+ +}}function Move2 (Whichlayer) {tlayer2=eval (Whichlayer) if (tlayer2.top>0&&tlayer2.top<=5) { Tlayer2.top=0settimeout ("Move2 (Tlayer2)", pausebetweenimages) SetTimeout ("Move1 (Document.main.document.first)", pausebetweenimages) return}if (tlayer2.top>=tlayer2.document.height*-1) {tlayer2.top-=5settimeout ("move2 ( Tlayer2) ",}else{tlayer2.top=scrollerheighttlayer2.document.write (Slideimages[i]) tlayer2.document.close () if (i==slideimages.length-1) i=0elsei++}}function move3 (whichdiv) {tdiv=eval (Whichdiv) if (tdiv.style.pixeltop>0 &&tdiv.style.pixeltop<=5) {tdiv.style.pixeltop=0settimeout ("Move3 (Tdiv)", pausebetweenimages) SetTimeout ("Move4 (Second2)", Pausebetweenimages) return}if (tdiv.style.pixeltop>=tdiv.offsetheight*-1) { Tdiv.style.pixeltop-=5settimeout ("MOve3 (Tdiv) ","}else{tdiv.style.pixeltop=scrollerheighttdiv.innerhtml=slideimages[i]if (i== slideimages.length-1) i=0elsei++}}function Move4 (whichdiv) {tdiv2=eval (Whichdiv) if (tdiv2.style.pixeltop>0& &tdiv2.style.pixeltop<=5) {tdiv2.style.pixeltop=0settimeout ("Move4 (TDIV2)", pausebetweenimages) setTimeout ("Move3 (First2)", Pausebetweenimages) return}if (tdiv2.style.pixeltop>=tdiv2.offsetheight*-1) { Tdiv2.style.pixeltop-=5settimeout ("Move4 (Second2)", +)}else{tdiv2.style.pixeltop= Scrollerheighttdiv2.innerhtml=slideimages[i]if (i==slideimages.length-1) i=0elsei++}}function Startscroll () {if ( document.all) {move3 (FIRST2) Second2.style.top=scrollerheight}else if (document.layers) {move1 ( Document.main.document.first) document.main.document.second.top=scrollerheight+ 5document.main.document.second.visibility= ' show '}}window.onload=startscroll//--></script> <ilayer ID = "main" width= "&{scrollerwidth};" height= "&{scrollerheight};" bgcolor= "&{scrollerbgcolor};" > <layeR id= "First" left= "0" top= "1" width= "&{scrollerwidth};" > <scriptlanguage= "JavaScript1.2" >if (document.layers) document.write (slideimages[0]) </script> < /layer> <layer id= "second" left= "0" top= "0" width= "&{scrollerwidth};" visibility= "Hide" > <script Language= "JavaScript1.2" >if (document.layers) document.write (slideimages[1]) </script> </layer> < /ilayer> </p><p><script language= "JavaScript1.2" ><!--if (document.all) {Document.writeln (' <span id= "main2" style= "position:relative;width: ' +scrollerwidth+ '; height: ' +scrollerheight+ '; overflow:hiden; Background-color: ' +scrollerbgcolor+ ' > ') document.writeln (' <div style= ' position:absolute;width: ' + scrollerwidth+ '; height: ' +scrollerheight+ '; clip:rect (0 ' +scrollerwidth+ ' +scrollerheight+ ' 0); left:0;top:0 ">") Document.writeln (' <div id= ' First2 "style=" position:absolute;width: ' +scrollerwidth+ '; left:0;top:1; " > ') document.write (Slideimages[0]) Document.writeln (' </div> ') document.writeln (' <div id= "Second2" style= "position:absolute;width: ' +scrollerwidth+ '; left:0;top:0 ' > ' ) document.write (slideimages[1]) Document.writeln (' </div> ') document.writeln (' </div> ') Document.writeln (' </span> ')}//--></script>
7, following the screen move
Images that follow the screen [recommended] Modify the image name and text [Total 2 steps]====1, add the following code to the HEML