WHAT’S THE SCRIPT/HTML FOR THIS FUNCTION WHERE THE IMAGE CONTINUES TO STAY AT THE CORNER YOU MADE IT TO BE…?

Question by napoleon says:
What’s the script/html for this function where the image continues to stay at the corner you made it to be…?
even as you scroll. It sort of follows you… when you scroll up or down the page, it still stays at the same position…
For example, i want it to stay at the top right hand corner of my site, but as i scroll to the right, (since my site works horizontally)… it still continues to stay at the top right hand corner… I doubt it’s got to do with absolute positioning or the like. Could someone help me out? :p
I’m a rookie so i’m sorry if i sound informal.
THANK YOU SOOO MUCH in advance!!
——————————————
Answer by Reese
here you go http://javascript.internet.com/image-effects/floating-transparent-slideshow.html that where i got it from here is the java script for it.
remember to rate
/* Floating Slide Show Script C.2004 by CodeLifter.com */
// You *must* add onload="runSlideShow()" to the
tag // of the page.// In the section marked Edit the HTML, above, remember to // set the path and size for the first image.
// ======================================= // Set the following variables // =======================================
// Set slideShowSpeed (milliseconds): var slideShowSpeed = 3000
// Duration of crossfade (seconds) for IE: var crossFadeDuration = 3
// Set the positioning variables, below: // Negative numbers are relative to right (whereX) or bottom (whereY) // Positive numbers are relative to left (whereX) or (whereY) top // Experiment with values to get positioning exact, and allow // for the dimensions of the image in the positioning
var whereX = 140; var whereY = -233;
// Specify the image files: var Photo = new Array() // do not touch this! // to add more images, just continue // the pattern, adding to the array below
Pic[0] = 'float1_trans.gif' Pic[1] = 'float2_trans.gif' Pic[2] = 'float3_trans.gif' Pic[3] = 'float4_trans.gif' Pic[4] = 'float5_trans.gif'
// ======================================= // Do not edit *anything* below this line! // =======================================
var nn=(navigator.appName.indexOf("Netscape")!=-1); var t;var j=0;var p=Pic.length;var preLoad=new Array(); for (i=0;i
(p-1))j=0;t=setTimeout('runSlideShow()', slideShowSpeed);} var dD=document,dH=dD.html,dB=dD.body,px=dD.layers?'':'px'; function floatSS(iX,iY,id){ var L=dD.getElementById?dD.getElementById(id):dD.all?dD.all[id]:dD.layers[id]; this[id+'O']=L;if(dD.layers)L.style=L;L.nX=L.iX=iX;L.nY=L.iY=iY; L.P=function(x,y){this.style.left=x+px;this.style.top=y+px;};L.Fss=function(){var pX, pY; pX=(this.iX >=0)?0:nn?innerWidth:nn&&dH.clientWidth?dH.clientWidth:dB.clientWidth; pY=nn?pageYOffset:nn&&dH.scrollTop?dH.scrollTop:dB.scrollTop; if(this.iY<0)pY+=nn?innerHeight:nn&&dH.clientHeight?dH.clientHeight:dB.clientHeight; this.nX+=.1*(pX+this.iX-this.nX);this.nY+=.1*(pY+this.iY-this.nY);this.P(this.nX,this.nY); setTimeout(this.id+'O.Fss()',33);};return L;} floatSS(whereX,whereY,'FloatSlideShow').Fss();
Free JavaScripts provided
by The JavaScript Source
just change Pic[0] = 'float1_trans.gif' to what each you want if you want them all to be the same change all of them to the same thing like Pic[1] Pic[2] Pic[3]
Remember to rate
it is called a floating image.
------------------------------------------
Give your own answer to this question below!










about 1 year ago
That will get you deleted, You can not ask for people to click your ads.
about 7 months ago
=====
position:fixed is supported in newer browser versions only.
about 7 months ago
position:fixed;
right:0px;
if you assign these two properties to your stylesheet for the image id or container div they will appear fixed in the top right corner of the browser window