<html>
<head>
<script language="javascript">
function moveIt() {
if(document.layers) {
document.redball.left += 5;
if (document.redball.left>300) {
document.redball.left = 0;
}
} else if (document.all) {
redball.style.left = parseInt(redball.style.left) + 5;
if (parseInt(redball.style.left) > 1024) {
redball.style.left =-400;
}
}
if ((document.layers) || (document.all)) {
setTimeout('moveIt()', 50);
} }
</script></head>
<body onload="moveIt()" background=bg.gif>
<div id="redball" style="position:relative; left:0px; width:350px; height:45px;">
<br><br><br>
<p align="left">
<img src="moveimage.gif" alt="移动的广告条" WIDTH="400" HEIGHT="200"><br>
</p>
</div>
<br><br>
<font size=20 color=#9999CC face=汉鼎繁特楷>
图像的移动:可以将图换成自己喜欢的标志,或做上链接
</font>
</body>
</html>
<head>
<script language="javascript">
function moveIt() {
if(document.layers) {
document.redball.left += 5;
if (document.redball.left>300) {
document.redball.left = 0;
}
} else if (document.all) {
redball.style.left = parseInt(redball.style.left) + 5;
if (parseInt(redball.style.left) > 1024) {
redball.style.left =-400;
}
}
if ((document.layers) || (document.all)) {
setTimeout('moveIt()', 50);
} }
</script></head>
<body onload="moveIt()" background=bg.gif>
<div id="redball" style="position:relative; left:0px; width:350px; height:45px;">
<br><br><br>
<p align="left">
<img src="moveimage.gif" alt="移动的广告条" WIDTH="400" HEIGHT="200"><br>
</p>
</div>
<br><br>
<font size=20 color=#9999CC face=汉鼎繁特楷>
图像的移动:可以将图换成自己喜欢的标志,或做上链接
</font>
</body>
</html>
<div id="point1" STYLE="position:absolute;visibility:visible;">
<!--Please delete this table and insert into your html elements-->
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<a href="../../../www.dynamicdrive.com/index.html">
<img src="../ddaward.gif" width=96 height=60 alt="" border="0">
</a>
</td>
</tr>
<tr>
<td>
<center><a href="../../../www.dynamicdrive.com/index.html">
<font face="Arial" size="2" color="#0000FF">Dynamic Drive</font>
</a></center>
</td>
</tr>
<tr>
<td>
<center><a href="../../../www.dynamicdrive.com/new.htm">
<font face="Arial" size="2" color="#0000FF">What's New</font>
</a></center>
</td>
</tr>
</table>
<!--End of the customizable area, please do not delete div the tag -->
</div>
<script LANGUAGE="JavaScript1.2">/*
Floating image II (up down)- Bruce Anderson (http://appletlib.tripod.com)
Submitted to Dynamicdrive.com to feature script in archive
Modified by DD for script to function in NS6
For 100's of FREE DHTML scripts, Visit http://www.dynamicdrive.com
*/var XX=20; // X position of the scrolling objects
var xstep=1;
var delay_time=60;//Begin of the unchangable area, please do not modify this area
var YY=0;
var ch=0;
var oh=0;
var yon=0;var ns4=document.layers?1:0
var ie=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0if(ie){
YY=document.body.clientHeight;
point1.style.top=YY;
}
else if (ns4){
YY=window.innerHeight;
document.point1.pageY=YY;
document.point1.visibility="hidden";
}
else if (ns6){
YY=window.innerHeight
document.getElementById('point1').style.top=YY
}
function reloc1()
{if(yon==0){YY=YY-xstep;}
else{YY=YY+xstep;}
if (ie){
ch=document.body.clientHeight;
oh=point1.offsetHeight;
}
else if (ns4){
ch=window.innerHeight;
oh=document.point1.clip.height;
}
else if (ns6){
ch=window.innerHeight
oh=document.getElementById("point1").offsetHeight
}
if(YY<0){yon=1;YY=0;}
if(YY>=(ch-oh)){yon=0;YY=(ch-oh);}
if(ie){
point1.style.left=XX;
point1.style.top=YY+document.body.scrollTop;
}
else if (ns4){
document.point1.pageX=XX;
document.point1.pageY=YY+window.pageYOffset;
}
else if (ns6){
document.getElementById("point1").style.left=XX
document.getElementById("point1").style.top=YY+window.pageYOffset
}}function onad()
{
if(ns4)
document.point1.visibility="visible";
loopfunc();
}
function loopfunc()
{
reloc1();
setTimeout('loopfunc()',delay_time);
}if (ie||ns4||ns6)
window.onload=onad</script>
<!--/*
Bouncing Image script II (By Dheera Venkatraman [email protected])
Submitted to and modified by Dynamic Drive for code enhancements
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
//1) specify path to image//图片的路径
var imagepath="http://www.yourdomain.com/image.gif"//2) specify image dimensions//图片的大小
var imagewidth=90
var imageheight=30//3) change this to adjust speed (lower is slower)//速度
var speed=8;//4) configure what should happen when user clicks on image
//A value of "dismiss" will dismiss it, while a URL will cause the browser to navigate to it
var imageclick="dismiss"//5) Finally, configure when the image should automatically disappear, in seconds (0=perpetual)
var hideafter=0////No editing required beyond this point/////////////////var isie=0;
if(window.navigator.appName=="Microsoft Internet Explorer"&&window.navigator.appVersion.substring(window.navigator.appVersion.indexOf("MSIE")+5,window.navigator.appVersion.indexOf("MSIE")+8)>=5.5) {
isie=1;
}
else {
isie=0;
}if(isie){
var preloadit=new Image()
preloadit.src=imagepath
}
function pop() {
if(isie) {
x=x+dx;y=y+dy;
oPopup.show(x, y, imagewidth, imageheight);
if(x+imagewidth+5>screen.width) dx=-dx;
if(y+imageheight+5>screen.height) dy=-dy;
if(x<0) dx=-dx;
if(y<0) dy=-dy;
startani=setTimeout("pop();",50);
}
}function dismisspopup(){
clearTimeout(startani)
oPopup.hide()
}function dowhat(){
if (imageclick=="dismiss")
dismisspopup()
else
window.location=imageclick
}
if(isie) {
var x=0,y=0,dx=speed,dy=speed;
var oPopup = window.createPopup();
var oPopupBody = oPopup.document.body;
oPopupBody.style.cursor="hand"
oPopupBody.innerHTML = '<IMG SRC="'+preloadit.src+'">';
oPopup.document.body.onmouseover=new Function("clearTimeout(startani)")
oPopup.document.body.onmouseout=pop
oPopup.document.body.onclick=dowhat
pop();if (hideafter>0)
setTimeout("dismisspopup()",hideafter*1000)
}
// -->
</SCRIPT>