Replace your headshot or Primary photo with anything.. It can be a slide embed, mp3 player, chatbox, flash, or even a gif image. 
if (!addEvent(function() { onProfileLoad();})) { window.onload = function() { onProfileLoad();};}
function onProfileLoad() {
var cont; var sibling;
cont = document.createElement("DIV");
cont.setAttribute("class","newImg");
cont.innerHTML = "CONTENT HERE";
sibling = getElementsByClassName(document.getElementById("rail"),"div","userlogo")[0];
sibling.parentNode.replaceChild(cont,sibling);
}
function getElementsByClassName(oElm,sTag,sClass) {
var elm = [];
if (!oElm)oElm = document;
if (!sTag)sTag = "*";
var els = oElm.getElementsByTagName(sTag) || document.all;
for (var j=0,k=els.length;j<k;j++) {
if (new RegExp(sClass).test(els[j].className)) {
elm.push(els[j]);
}
}
return elm;
}Replace the words CONTENT HERE with anything you like. Save as JS File..gif)
Last edited by xavierkym (2008-04-24 22:58:54)

|
this trick is in conflict with the add box function.
|
^
If you're using cloud's addBox thne just put this below your onload handler.
var image; var sibling;
image = document.createElement("DIV");
image.setAttribute("class","newImg");
image.innerHTML = "CONTENT HERE";
sibling = getElementsByClassName(document.getElementById("rail"),"div","userlogo")[0];
sibling.parentNode.replaceChild(image,sibling);But first of all, make sure that you have the getElementByClass function 
john_619619 wrote:
any preview?
Okei fine. Visit my Multiply. 
Last edited by xavierkym (2008-04-24 22:57:38)

|

here's my animated gif code :
<a href="http://www.glitter-graphics.com"><img src="http://dl9.glitter-graphics.net/pub/783/783099at8n486q21.gif" width=75 height=200 border=0></a>
i tried putting this in my js file but nothing happened and my codes are not working anymore
|
^
Try this.
<a href=\"http://www.glitter-graphics.com\"><img src=\"http://dl9.glitter-graphics.net/pub/783/783099at8n486q21.gif\" width=\"75\" height=\"200\" border=\"0\"></a>

|

valjesnet wrote:
valjesnet wrote:
var image; var sibling;
image = document.createElement("DIV");
image.setAttribute("class","newImg");
image.innerHTML = "<a href=\"http://www.glitter-graphics.com\"><img src=\"http://dl9.glitter-graphics.net/pub/783/783099at8n486q21.gif\" width=\"75\" height=\"200\" border=\"0\"></a>";
sibling = getElementsByClassName(document.getElementById("rail"),"div","userlogo")[0];
sibling.parentNode.replaceChild(image,sibling);
not working. i put abv codes inside my on loader
http://h1.ripway.com/valjesnet/jennette.js
resend
i also want to use below. pls help
<a href="http://www.befunky.com/images.php?imageID=267256" target="_blank"><img src="http://www.befunky.com/vImages/cartoon/C126292-1209441309.jpg"></a><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/CIMP/bT*xJmx*PTEyMDk*NDMwODk1NjImcHQ9MTIwOTQ*MzEwOTUwMCZwPTE2MjMxJmQ9Jm49Jmc9MQ==.jpg" />
|
cheeeeeeeeee....gif)
is there any previeeeeeew?
|
what's wrong with this code? i also tried it and it ain't working. i tried valjesnet's image and got the same results, no cigar 
also checked ur multiply site, your headshot's just a plain jpeg. not even a gif.
help us o mighty one
Last edited by tekworks (2008-05-06 18:42:30)
|

thankz for sharing us....

|
It's better 2 put a working live preview, so dat we'l c d outcome of dat trick, anyway thanks 4 d share.
|