friendsterTalk - Friendster Forum

friendsterTalk - Friendster Forum

Welcome guest! Please Login or Register.

#1  2007-05-15 04:12:08

bryandg01
» FriendsterTalker
Registered: 2007-05-05
Posts: 106
Last visit: 2008-06-22
Reputation: 1

quick message box(sidebar script)

if your not using my anti poser cbox

here is the code

Code:

if (!attachOnLoadHandler(function(){bryan2()})) parent.onload = function(){bryan2()};
//load script
function attachOnLoadHandler(func)
{
    if(parent.attachEvent)
    {
        //win 5.0-6.0
        parent.attachEvent('onload',func);       
        return true;
    }
    if(parent.addEventListener)
    {
        //moz,opera & safari
        parent.addEventListener('load',func,false);       
        return true;   
    }
    return false;   
}


function bryan2() {


var mssg="<div align='center' id='cboxdiv'>"+
"<form name='message_form' action='http://www.friendster.com/sendmessage.php' method='post' onsubmit='this.onsubmit = new Function('return false');'><input type='hidden' name='_submitted' value='1'><input type='hidden' name='msg_type' value=''><input type='hidden' name='uid' value='"+pageOwnerID+"'><table class='formtable'><tr><td class='field'><label for='subjectfield'></label></td><td class='value'><span class='field'>Subject:</span><br><input id='subjectfield' type='text' name='subject' size='25' maxlength='100' class='subjectfield'></td></tr><tr><td class='field'><label for='messagefield'></label></td><td valign='top' class='value'><span class='field'>Message:</span><br><textarea id='messagefield' name='message' rows='10' cols='21' wrap='hard' class='messagefield'></textarea><input readonly type='hidden' name='inputcount' size='5' maxlength='4' value='100'></td></tr><tr><td class='field'></td><td class='value'><input type='checkbox' name='savetosent' value='y'>Save a copy in your Sent folder<br><input type='submit' name='Submit' onMouseOver='window.status='Send';return true;' value='Send'></td></tr></table></form>"+
"</div>";
addSideBar("mssg",mssg,"ul_cbox_content");

}


//add sidebar script
function addSideBar(head,htm,div_id) {

var browser=navigator.appName;
var mic="Microsoft Internet Explorer";

var innerHtm=htm;
var cont="<div id='"+div_id+"' class='commonbox "+div_id+"'>"+
"<div class='commonbox'>"+
"<h2>"+head+"</h2>"+
innerHtm+
"</div>"+
"</div>";

if (browser==mic){
var obj=parent.document.createElement("<li>");
var x=parent.document.getElementById("2");
x.parentNode.parentNode.appendChild(obj);
obj.innerHTML=cont;
}
else
{
var obj=parent.document.createElement("li");
obj.innerHTML=cont;
var x=parent.document.getElementById("2");
x.parentNode.parentNode.appendChild(obj);
}

}

save it as js file

you can change the appearance using css

.subjectfield {
background-color: #CCCCCC;
border-color: #000000;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-weight: bold;
}

.messagefield {

width:250px;
height:300px;
background-color: #CCCCCC;
border: #000000 1px solid;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-weight: normal;
}

save it as css file^_^
Preview Here http://www.friendster.com/42251949

Last edited by bryandg01 (2008-04-25 12:44:58)


#2  2007-05-15 04:14:36

Ephemeral
» Moderator
Ephemeral's display avatar
L'Interdit
Class-S
Location: Perdido Paraíso
Registered: 2006-10-20
Posts: 10249
Reputation: 281
Friendster

Re: quick message box(sidebar script)

Tasty Script looks edible yummy!  =)  :lol:   :cake:  :penguin:

Last edited by Ephemeral (2007-05-15 04:15:06)


#3  2007-05-15 04:17:12

bryandg01
» FriendsterTalker
Registered: 2007-05-05
Posts: 106
Last visit: 2008-06-22
Reputation: 1

Re: quick message box(sidebar script)

Ephemeral wrote:

Tasty Script looks edible yummy!  =)  :lol:   :cake:  :penguin:

ha?  :question:  :question:


#4  2007-05-15 04:19:22

Tazmaine
» CSS Master
Tazmaine's display avatar
HaMstErmAinEa.. Luv iT
Location: Valenzuela
Registered: 2007-04-03
Posts: 320
Last visit: 2008-11-07
Reputation: 18
Friendster

Re: quick message box(sidebar script)

nice script^^

very useful ^^//





"IMMATURE" is just a word used by people that dont know how to have fun

#5  2007-05-15 04:57:22

leftalone
» FriendsterGeek
Registered: 2007-04-13
Posts: 1457
Last visit: 2008-10-26
Reputation: 4

Re: quick message box(sidebar script)

weee :rose:

#6  2007-05-15 07:16:36

crimez2
» FriendsterAddict
crimez2's display avatar
Location: Outside Of The SolarSystem
Registered: 2007-04-26
Posts: 493
Last visit: 2008-11-18
Reputation: -3
Friendster

Re: quick message box(sidebar script)

Tnx.....For......Sharing..... :eh:  :rose:


"Treasure the love you receive above all.
It will survive long after your gold and good health have vanished."

#7  2007-05-15 08:47:49

Kingi
» FriendsterNewbie
Registered: 2007-04-29
Posts: 1
Last visit: 2008-04-24
Reputation: ~

Re: quick message box(sidebar script)

http://www.friendster.com/7712615

uhmm.. can i ask any1 on how to display da viewers avatar image on a cbox??

Last edited by Kingi (2007-05-15 08:50:10)

#8  2007-05-15 08:56:22

eykalsyamim
» Retired Moderator
eykalsyamim's display avatar
On holiday!! Two months..
Class-S
Location: Malaysia
Registered: 2007-01-24
Posts: 5306
Reputation: 13
Friendster

Re: quick message box(sidebar script)

yup..it's like editted 1..
but i think it's gud..
tq 4 sharing..  :thumbsup:  :thumbsup:


I'm a newbie..

Compiling javascripts in one file Click Here
Complete Compilation of CSS Codes! Click Here

#9  2007-05-15 09:50:54

bryandg01
» FriendsterTalker
Registered: 2007-05-05
Posts: 106
Last visit: 2008-06-22
Reputation: 1

Re: quick message box(sidebar script)

eykalsyamim wrote:

yup..it's like editted 1..
but i think it's gud..
tq 4 sharing..  :thumbsup:  :thumbsup:

yup i edit that code

i get the code here www.friendster.com/sendmessage.php

then i view the source of that page then i get the textarea code

then i used marfillaster add side bar script :P :)


#10  2007-05-15 10:42:00

apol
» FriendsterNewbie
apol's display avatar
Location: philippines
Registered: 2007-05-10
Posts: 87
Last visit: 2008-09-15
Reputation: ~
???

Re: quick message box(sidebar script)

anti poser cbox means?ahmn.,.,.. :P




I wish I could create a COMPUTER SOFTWARE that controls the WORLD PANORAMA.

#11  2007-05-15 10:50:32

feruzz
» Retired Moderator
feruzz's display avatar
X-Mod
Class-S
Location: Malaysia
Registered: 2007-02-18
Posts: 8262
Reputation: 134
???

Re: quick message box(sidebar script)

wow nice script....here's my version of quick message box with Reset button

Code:

if (!attachOnLoadHandler(function(){quickMsgadd()})) window.onload = function(){quickMsgadd()};
function quickMsgadd() {
addSideBar("Quick Message","<div align='center' id='quickmsg'>"+
     "<form name='quickmessagename' action='http://www.friendster.com/sendmessage.php' method='post' onsubmit='this.onsubmit = new Function('return false');'>"+
     "<input type='hidden' name='_submitted' value='1'><input type='hidden' name='msg_type' value=''><input type='hidden' name='uid' value='"+pageOwnerID+"'>"+
     "<table class='formtable'><tr><td class='field'><label for='subjectfield'></label></td>"+
     "<td class='value'><span class='field'>Subject:</span><br><input id='subjectfield' type='text' name='subject' size='25' maxlength='100'></td></tr>"+
     "<tr><td class='field'><label for='messagefield'></label></td><td valign='top' class='value'><span class='field'>Message:</span><br>"+
     "<textarea id='messagefield' name='message' rows='5' cols='25' wrap='hard'></textarea><input readonly type='hidden' name='inputcount' size='5' maxlength='4' value='100'></td></tr>"+
     "<tr><td class='field'></td><td class='value'><input type='checkbox' name='savetosent' value='y'>Save a copy in your Sent folder</div><br>"+
     "<center><input class='clearButtons' type='reset' value='Reset' maxlength='26' onClick='reset()'>"+
     "<input type='submit' name='Submit' onMouseOver='window.status='Send';return true;' value='Send'></center></td></tr></table></form><br></div>","qmsg");
    }

function addSideBar(head,htm,div_id) {

    var innerHtm=htm;
    var cont=
       
        "<div id='"+div_id+"' class='commonbox "+div_id+"'>"+
            "<h2>"+head+"</h2>"+
            "<div id='content_"+div_id+"'>"+
                innerHtm+
            "</div>"+
       "</div>";

    try {
        var obj=document.createElement("<li>");
    } catch(e) {
        var obj=document.createElement("li");
    }
    var x=document.getElementById("friends_2_2");
    x.parentNode.parentNode.appendChild(obj);
    obj.innerHTML=cont;
}

Last edited by feruzz (2007-06-28 12:54:04)

#12  2007-05-17 06:16:42

conmarie
» FriendsterAddict
conmarie's display avatar
Ne neomu yeppeoyo ;)
Singles Goes HOT!
Location: :]
Registered: 2007-04-24
Posts: 381
Last visit: 2008-08-02
Reputation: 1
Friendster

Re: quick message box(sidebar script)

Ephemeral wrote:

Tasty Script looks edible yummy!  =)  :lol:   :cake:  :penguin:

im tired of js extension!!!!!!!! it doesnt even work :disgust:



Tnx danx :D
I was so stupid when i was just a newbie here :wallbash: :wallbash:

#13  2007-05-17 06:27:47

bryandg01
» FriendsterTalker
Registered: 2007-05-05
Posts: 106
Last visit: 2008-06-22
Reputation: 1

Re: quick message box(sidebar script)

conmarie wrote:

Ephemeral wrote:

Tasty Script looks edible yummy!  =)  :lol:   :cake:  :penguin:

im tired of js extension!!!!!!!! it doesnt even work :disgust:

try to use feruzz quick message box

just copy his code and save it as .js file


#14  2007-05-19 07:12:57

ianspooky
» FriendsterNewbie
ianspooky's display avatar
Location: Bulakan
Registered: 2007-05-09
Posts: 48
Last visit: 2007-12-13
Reputation: ~
Friendster

Re: quick message box(sidebar script)

tnx bryandg01 for the code.... but how can i customize the color of my Quick Messege Box the textbox area.... cause i dont like white colors...  :o  Anybody know how to? that would be a great help!  tnx and more power....

Last edited by ianspooky (2007-05-19 07:14:44)

#15  2007-05-19 09:20:17

- razian -
» FriendsterAddict
- razian -'s display avatar
BUMP XD
Location: no-where
Registered: 2007-01-15
Posts: 427
Last visit: 2008-11-28
Reputation: 24
Friendster

Re: quick message box(sidebar script)

nice script..


Blessthefall Underoath From First To Last Saosin Thursday Silverstein The Used The Devil Wears Prada The Word Alive Alesana Attack Attack! Before Their Eyes Bring Me The Horizon  Burden Of A Day Chiodos Drop Dead Gorgeous Emanuel Emarosa Escape The Fate Hawthorne Heights Hopes Die Last I Am Ghost LoveHateHero A Skylit Drive Finch Pierce The Veil

#16  2007-05-19 10:14:48

veryboy
» FriendsterNewbie
veryboy's display avatar
Location: laguNa...
Registered: 2007-05-04
Posts: 31
Last visit: 2007-07-04
Reputation: ~
Friendster

Re: quick message box(sidebar script)

help me..

js codes doesnt work on my profyl...

heres the link of the codes...

http://www.freewebtown.com/veryboy/csscombine.css

http://www.freewebtown.com/veryboy/javascripts.js

that for the css and js...

wat du u think is wrong with my code...
and i dunno were to post the js scripts...
some said its in the school some said in reviews and some said in media box hay.. help




add me in your ym jerylle_12
in friendster sam but just add @yahoo.com heheh....

#17  2007-05-19 10:16:01

Ephemeral
» Moderator
Ephemeral's display avatar
L'Interdit
Class-S
Location: Perdido Paraíso
Registered: 2006-10-20
Posts: 10249
Reputation: 281
Friendster

Re: quick message box(sidebar script)

You WVM cbox code is the main problem you forgot to change some areas...


#18  2007-05-19 11:00:34

bryandg01
» FriendsterTalker
Registered: 2007-05-05
Posts: 106
Last visit: 2008-06-22
Reputation: 1

Re: quick message box(sidebar script)

ianspooky wrote:

tnx bryandg01 for the code.... but how can i customize the color of my Quick Messege Box the textbox area.... cause i dont like white colors...  :o  Anybody know how to? that would be a great help!  tnx and more power....

here is the css code if you want to change the appearance of your quick message box

Code:

.subjectfield {
background-color: #CCCCCC;
border-color: #000000;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-weight: bold;
}

.messagefield {

width:250px;
height:300px;
background-color: #CCCCCC;
border: #000000 1px solid;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-weight: normal;
}

#19  2007-05-20 11:32:36

Tazmaine
» CSS Master
Tazmaine's display avatar
HaMstErmAinEa.. Luv iT
Location: Valenzuela
Registered: 2007-04-03
Posts: 320
Last visit: 2008-11-07
Reputation: 18
Friendster

Re: quick message box(sidebar script)

@bryandg01  nice trick kua ^^

i Lubb iT........ hehe i rily Lubb it ^^

its wOrking w/ me ^^ i kinda edit just sum stuffs ^^ try to Look

anyways drop by to thnks

and to Mr. Feruzz too  for the edit portion specially the Reset Button ^^





"IMMATURE" is just a word used by people that dont know how to have fun

#20  2007-05-20 14:58:57

jamessss:b
» Moderator
jamessss:b's display avatar
You Make Me Breathless :)
Mga Masiyahing Pinoy!
Location: City of lights.
Registered: 2006-11-18
Posts: 8444
Last visit: Today
Reputation: 103
Friendster

Re: quick message box(sidebar script)

nice code
hihih. i wish more  helpful
tips to come.  :eh:



Project Claire 101: HAYDEN PANETTIERE v.01 ; Save the unbotton!
JOIN: http://friendstertalk.com/g=Mga+Masiyahing+Pinoy!

Search Friendstertalk

Board footer

FriendsterTalk is not affiliated with Friendster.com
Copyright © 2002–2008 PunBB

[ 28 queries - 0.769 second ]

Pay Per Click Ads by pay per click advertising by Kontera

FriendsterTalk.com x

Welcome to FriendsterTalk! 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. =)