Works on my FF and Netscape, I posted this only after I made it to work in IE
and it works on my Opera
Last edited by shakiro214 (2008-03-11 07:25:35)
please avoid that,
thanks for this again.
did you get my repu for you??!!
.... uhm how about on the floating image on d right side or i men both side simultaneous.. iis it possible? tnx....
[/quote]
try dis one..
[quote]dude="<div id='divStayTopLeft' style='position:absolute;z-index:50;'><img src='http://bp0.blogger.com/_BuyN0b_kHpc/R29XyarCp_I/AAAAAAAAAAM/U2ZCiSXbnAs/S220/150px-Midori_no_hibi.jpg' width='80px' height='80px' style='filter:none;-moz-opacity:1.0'/></div>";
flow=document.getElementById('flo_wrapper');
river=document.createElement("div");
river.innerHTML=dude;
flow.parentNode.insertBefore(river,flow);
//in this part you can change it into "frombottom" or "fromtop"
var verticalpos="frombottom"
function BoyantDiv()
{
var startX = 15;
var startY = 170;
function ml(id)
{
if (document.getElementById)
{
var wek=document.getElementById(id);
}
else if (document.all)
{
var wek=document.all[id];
}
else
{
var wek=document.layers[id];
}
if(document.layers)
{
wek.style=wek;
}
wek.sP = function(x,y) {shino(x,y);};
function shino(x,y)
{
wek.style.left=x;
wek.style.top=y;
}
wek.x = startX;
if (verticalpos=="fromtop")
{
wek.y = startY;
}
else{
if (navigator.appName.indexOf("Netscape") != -1)
{
wek.y = pageYOffset + innerHeight;
}
else
{
wek.y = document.body.scrollTop + document.body.clientHeight;
}
wek.y -= startY;
}
return wek;
}
window.stayTopLeft = function () {boyant();};
function boyant()
{
if (verticalpos=="fromtop"){
if (navigator.appName.indexOf("Netscape") != -1)
{
var tenten = pageYOffset;
}
else
{
var tenten = document.body.scrollTop;
}
ftlObj.y += (tenten + startY - ftlObj.y)/8;
}
else{
if (navigator.appName.indexOf("Netscape") != -1)
{
var tenten = pageYOffset + innerHeight;
}
else
{
var tenten = document.body.scrollTop + document.body.clientHeight;
}
ftlObj.y += (tenten - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
wakoko=setTimeout("stayTop[b]Left[/b]()", 50);
}
ftlObj = ml("divStayTop[b]Left[/b]");
stayTop[b]Left[/b]();
}
BoyantDiv();[/quote]
try to change the bolded part in [b]Right[/b]
seriously, I don't think that will work, those are just names and ids
[b]@buttkicker[/b]
Actually this code doesn't have a built-in function for floating on the right-side, also I do not know how to make one as I have only taken the code from a website and modified it to work on friendster, but this has been asked before, so I'll also show you what I replied for it:
[b]from post #38[/b]
[quote=shakiro214][quote=ameng]what about if i want to change it to the RIGHT?[/quote]
There's probably a better way to get it on the right side, but for now you can try this.
[b]replace this part:[/b]
[quote]var startX = 20;[/quote]
[b]with the following:[/b]
[quote]if (document.body.clientWidth>="1100")
{
var startX = 1080;
}
else
{
var startX = 824;
}[/quote]
the 1st startX is for screens with resolution widths of 1280
the 2nd startX is for screens with resolution widths of 1024
I don't ever bother with the 800 width
Remember that startX represents the distance from the left edge of your browser in pixels
the given widths are for content no wider than 200 pixels, but you can adjust them to hold wider or smaller content
Last edited by shakiro214 (2008-03-12 12:37:48)
Last edited by buttkicker23 (2008-03-12 12:43:02)
Last edited by wilycoyote (2008-03-13 04:30:21)
[url=http://theftalk.com/t9141-Viewer%27s-Main-Photo-%5BUpdated%5D.html]Viewer's Main Photo[/url]
and look for the [b]3rd[/b] trick entitled [b]"Viewer's Main Photo at Who I Want To Meet area"[/b]
5. Now copy & paste the js for that code after your floating objects code.
[url=http://theftalk.com/t9141-Viewer%27s-Main-Photo-%5BUpdated%5D.html]Viewer's Main Photo[/url]
and look for the [b]3rd[/b] trick entitled [b]"Viewer's Main Photo at Who I Want To Meet area"[/b]
5. Now copy & paste the js for that code after your floating objects code.[/quote]
its not working!!
kindly check my code plz...
[url]http://h1.ripway.com/abby013/tonee/floating.js[/url]
you did not follow my instructions
get the JS for the [b]3rd[/b] trick in this topic:
[b][url]http://theftalk.com/t9141-Viewer%27s-Main-Photo-%5BUpdated%5D.html[/url][/b], the js you are using is not a script from feruzz's topic
and also the [b]id[/b] you are using is wrong. The [b]id[/b] you want to use is [b]'viewerpic'[/b] not [b]'mainpic'[/b]
also, I think this is not your only js file. [b]Fun fact:[/b] other viewer pic codes or ajax-related javascript can conflict with what I just asked you to do
duplicate ids or duplicate ajax events can cancel your script
Last edited by shakiro214 (2008-03-13 12:04:23)