http://www.friendster.com/azt3r4k1zt4h
Check below the comments box.
[b]Note:[/b]
May connect boxes if not applied properly.
Works on I.E. and Firefox
Check http://www.w3schools.com for references.
[b]Advantage:[/b]
Doubled Boxes? No more!
Loads Fasts, Loads with all of your scripts.
Short Script...
To add another box just change the [b]function[/b].
Script is already appointed to the .commonbox class of your C.S.S. making it a free hassle code like the addbox funtion, but I used [b]div class[/b] tag.
Bandwidth Friendly.
Can be used as a base script.
[b]
Disadvantages:[/b]
May not work on all div ID's, still finding that particular one though...
[hr]
Add another box?
Example this is your default code...
[quote]var [b]about[/b];
try {[b]about[/b] = document.createElement("div");}
catch (e){[b]about[/b] = document.createElement("<div>");}
[b]about[/b].innerHTML = "<div class='commonbox'style='margin-botton:15px'>[color=violet]CONTENT HERE[/color]</div>";
document.getElementById("[color=yellow]Area[/color]").parentNode.appendChild([b]about[/b]);[/quote]
On the code you will see the word [b]about[/b] is on bold text. Change the bold text to your own function...
[b]Example:[/b]
[quote]var [b]ephe[/b];
try {[b]ephe[/b] = document.createElement("div");}
catch (e){[b]ephe[/b] = document.createElement("<div>");}
[b]ephe[/b].innerHTML = "<div class='commonbox'style='margin-botton:15px'>[color=violet]CONTENT HERE[/color]</div>";
document.getElementById("[color=yellow]Area[/color]").parentNode.appendChild([b]ephe[/b]);[/quote]
The code above you may notice the word [b]about[/b] was changed to [b]ephe[/b]. What I did was I change the function.
Just use the guide above as guide to know how to add more boxes.
Just change the [color=yellow]Area[/color] ok?
Last edited by Ephemeral (2009-03-11 12:55:08)
I tried this addon just this morning... as a message board too.. just above my comments table... and you were right!! it looks good both on Firefox and IE!! cool heheh!!
Last edited by Refresh/Reload (2007-07-10 23:34:54)
Last edited by Ephemeral (2007-07-11 00:30:25)
hope this one helps....
Last edited by Refresh/Reload (2007-07-11 00:14:52)
hope this one helps....[/quote]
@topic woah nice nice thanks ephe again ~_~
@reload (off-topic)
your signature reflects me entirely .. thanks for adding that nobody is quite good
Last edited by ezil2007 (2007-07-11 00:21:23)
hmmm, i wonder what should be done
hmmm, i wonder what should be done[/quote]
how about changing the ("controlpanel_1_1") ??
heheh.. nevermind...
its just a guess...
hope somebody can answer it correctly... coz mine is in the sidebar so it has a diff id location..
) i just learn from you guys.
can u enlighten me please
but you can put your personaly selected friends here
I made two of them in my profile now... one for a flash slide thingy
below my photo gallery and one as a message board above my
comments table!! see my profile to see what this code can do!! Thanx Ephs!!
see preview: [url]http://www.friendster.com/errorgod[/url]
Last edited by marib (2007-07-13 03:34:48)
[/quote]
Add marquee codes to make content move and fix the div style and add height and overflow: auto;
I suggest to try on how to put them for general knowledge