I found this code that my friend gave me. It’s suppost to create a floating image for your website, and when I say floating I mean it stays on the bottom of the browser’s window even if they scroll. My problem is, i want to make the current image to the file: [url]http://kevinreturns.webs.com/Shell/Root/op/Shell/IMAGES/Comment.png
And the link to:
[url]http://kevinreturns.webs.com/apps/guestbook
If you could teach me how to do this, i would appreciate it!
[code=php] window[“_load_random_xmd0kf4ghe846jqo9pd”] = function() {
var f = _fw.freebar;
if (!f) return;
_fw.bgcolor = document.bgColor;
var str = ”;
var o,opacity,top;
var h = 1;
if (_fw.adv) {
_fw.adv.style.backgroundColor = ‘transparent’;
var rows = _fw.gradheight = 120;
var fullheight = _fw.fullheight = 140;
}
else {
var rows = _fw.gradheight = 40;
var fullheight = _fw.fullheight = 60;
}
for (var i=0;i<rows;i++) {
top = i*h;
o = i*(100/rows);
opacity = (document.all)? opacity = ‘filter:alpha(opacity=’+o+’);’ : ‘opacity:’+(o/100)+’;’;
str += ‘<div style=”position:absolute; overflow:hidden; width:100%; height:’+h+’px; left:0px; top:’+top+’px; background-color:#ffffff; ‘+opacity+'”></div>n’; // ;
}
str += ‘<div id=”fw_content” style=”position:absolute; overflow:hidden; width:100%; height:’+(fullheight-(h*rows))+’px; left:0px; top:’+(h*rows)+’px; background:#367cbf url(”+_fw.imagesprefix+’bar_fadewhite-bg.gif’) repeat-x top;”></div>’;
str += ‘<div style=”position:absolute; width:100%; left:0px; top:’+(fullheight-33)+’px; text-align:center; z-index:1000″><a href=”‘+_fw.url+'” target=”_top”><img src=”‘+_fw.imagesprefix+’bar_fadewhite.gif” width=439 height=33 border=0></a></div>’;
f.innerHTML = str;
f.style.width = ‘100%’;
f.style.height = fullheight+’px’;
}
window[“_set_random_xmd0kf4ghe846jqo9pd”] = function() {
var f = _fw.freebar;
if (f && document.all) f.style.width = document.body.clientWidth + document.body.scrollLeft+’px’;
var dh = document.body.scrollHeight;
var wh;
if (document.all) {
wh = document.documentElement.clientHeight;
if (wh==0) wh = document.body.clientHeight;
}
else {
if (dh<window.innerHeight) wh = window.innerHeight;
else wh = document.body.clientHeight;
}
var st = (_fw.cssfixed)? 0:parseInt(document.body.scrollTop);
var y = st + wh – _fw.fullheight;
var h = dh – y;
if (h<_fw.fullheight) h = _fw.fullheight;
if (f) {
f.style.top = y+’px’;
f.style.height = h+’px’;
var ch = h-(_fw.fullheight-_fw.gradheight);
if (ch<(_fw.fullheight-_fw.gradheight)) ch = _fw.fullheight-_fw.gradheight;
_fw.contentbar.style.height = ch;
}
if (_fw.adv) {
_fw.adv.style.top = (y+10)+’px’;
}
}
:rolleyes: I am new with Javascript bt the way.