FTalk

FTalk

Welcome guest! Please Login or Register.

  • Multiply
  •  » Replace Headshot w/ Anything

#1  2008-04-11 12:48:39

xavierkym
 !!bloody bastard!!
xavierkym's display avatar
» Former Moderator
FTalk Level: 7
Novice PromoterTopic InitiatorSome FTalkers ♥ My Threads!
The Sinister
Class-S
London, England
5386
147
2010-03-11
Website

Replace Headshot w/ Anything

Replace your headshot or Primary photo with anything.. It can be a slide embed, mp3 player, chatbox, flash, or even a gif image. :eh:

Code:

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.;)

Last edited by xavierkym (2008-04-24 22:58:54)


                    

#2  2008-04-11 13:54:11

yakuza49
 Ronald
yakuza49's display avatar
» FTalker
FTalk Level: zero
Meow?
Soul Society
108
0
2009-04-27
Website

Re: Replace Headshot w/ Anything

Whopee! First one to comment.
:eh:
That's cool man. I'll try it.

Thanks for sharing:penguin:


|\___/|   *Meow!                                       
'\^  ^/'      Wuss...                               
.Ω    Ω                                                     
.|      |

#3  2008-04-14 04:51:32

john_619619
» FTalkAgent
FTalk Level: zero
2336
57

Re: Replace Headshot w/ Anything

any preview? :paranoid:

#4  2008-04-24 16:18:34

alhakeem
alhakeem's display avatar
» FTalker
FTalk Level: 1
143
1
2010-03-15

Re: Replace Headshot w/ Anything

this trick is in conflict with the add box function.

#5  2008-04-24 22:46:37

xavierkym
 !!bloody bastard!!
xavierkym's display avatar
» Former Moderator
FTalk Level: 7
Novice PromoterTopic InitiatorSome FTalkers ♥ My Threads!
The Sinister
Class-S
London, England
5386
147
2010-03-11
Website

Re: Replace Headshot w/ Anything

^
If you're using cloud's addBox thne just put this below your onload handler.

Code:

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 :eh:

john_619619 wrote:

any preview? :paranoid:

Okei fine. Visit my Multiply. :wallbash:

Last edited by xavierkym (2008-04-24 22:57:38)


#6  2008-04-24 23:15:50

mikai14
 mikai
mikai14's display avatar
» FTalkAddict
FTalk Level: zero
~speechless~
sa bahay
503
33
2010-01-18
Website

Re: Replace Headshot w/ Anything

tnx foe sharin
ill try this one...=)

Last edited by mikai14 (2008-04-24 23:16:04)




i lurb my hat3rs..♥♥

#7  2008-04-25 15:50:07

valjesnet
 Jennette
valjesnet's display avatar
» FTalkAddict
FTalk Level: zero
Makati
417
1
2008-08-24

Re: Replace Headshot w/ Anything

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


#8  2008-04-25 16:41:42

xavierkym
 !!bloody bastard!!
xavierkym's display avatar
» Former Moderator
FTalk Level: 7
Novice PromoterTopic InitiatorSome FTalkers ♥ My Threads!
The Sinister
Class-S
London, England
5386
147
2010-03-11
Website

Re: Replace Headshot w/ Anything

^
Try this.

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>

#9  2008-05-01 01:13:12

valjesnet
 Jennette
valjesnet's display avatar
» FTalkAddict
FTalk Level: zero
Makati
417
1
2008-08-24

Re: Replace Headshot w/ Anything

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
:crybaby:
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" />


#10  2008-05-01 02:37:57

losher29
 Kurisutiyan.
losher29's display avatar
» FTalkElite
FTalk Level: HARDCORE!
FTalkers ♥♥ Me!Topic Initiator
You're so full of shit
Class-S
Fuxxing tree hut
5467
619
Website

Re: Replace Headshot w/ Anything

cheeeeeeeeee...;)
is there any previeeeeeew?

#11  2008-05-06 18:39:25

tekworks
» n00b
FTalk Level: zero
4
0
2008-05-06

Re: Replace Headshot w/ Anything

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 :crybaby:

also checked ur multiply site, your headshot's just a plain jpeg. not even a gif.

:D help us o mighty one

Last edited by tekworks (2008-05-06 18:42:30)

#12  2008-05-07 07:27:58

.L.
 elle.
.L.'s display avatar
» FTalkManiac
FTalk Level: zero
Rockstars
886
69

Re: Replace Headshot w/ Anything

cool. thanks for sharing =)

#13  2008-10-19 03:34:00

rainaze
 rainaze
rainaze's display avatar
» n00b
FTalk Level: zero
quezon city
95
0
2009-05-25

Re: Replace Headshot w/ Anything

thankz for sharing us....


#14  2009-06-24 00:45:38

iluvmii27
 iNACTiB :]
iluvmii27's display avatar
» FTalkManiac
FTalk Level: zero
ILYSM♥
Asylum
Mii+YOU :)
604
60
2009-10-10
Website

Re: Replace Headshot w/ Anything

i'll try to use this one.

cool dude.:eh:

#15  2009-08-17 10:59:22

chipster489
» Made in FTalk
FTalk Level: HARDCORE!
Everyone ♥♥♥ Me!Top Poster
38752
1000

Re: Replace Headshot w/ Anything

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

  • Multiply
  •  » Replace Headshot w/ Anything

Search Friendstertalk

Moderated by Ephemeral, lovegood, sugarstyx_x

Board footer

The F Talk dot com
© 2002–2010 PunBB

Current time is 17:59:06 GMT

[ 10 queries - 0.032 second ]
Powered by SyntheticNetwork

FTalk

Welcome to FTalk! You'll need to login in order to fully use all the features and view all the sections of this site.

Please register if you're not yet a member. =)

( hide )