if your not using my anti poser cbox
here is the 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)

-Offline- |

Tasty Script looks edible yummy!

Last edited by Ephemeral (2007-05-15 04:15:06)
Ephemeral wrote:
Tasty Script looks edible yummy!
![]()
![]()
![]()
ha?


-Offline- |

nice script^^
very useful ^^//

-Offline- |
weee 
-Offline- |

Tnx.....For......Sharing.....


-Offline- |
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)
-Offline- |

yup..it's like editted 1..
but i think it's gud..
tq 4 sharing..
![]()
eykalsyamim wrote:
yup..it's like editted 1..
but i think it's gud..
tq 4 sharing..![]()
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


-Offline- |
wow nice script....here's my version of quick message box with Reset button
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)

Ephemeral wrote:
Tasty Script looks edible yummy!
![]()
![]()
![]()
im tired of js extension!!!!!!!! it doesnt even work 



-Offline- |
conmarie wrote:
Ephemeral wrote:
Tasty Script looks edible yummy!
![]()
![]()
![]()
im tired of js extension!!!!!!!! it doesnt even work
try to use feruzz quick message box
just copy his code and save it as .js file

-Offline- |

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...
Anybody know how to? that would be a great help! tnx and more power....
Last edited by ianspooky (2007-05-19 07:14:44)
-Offline- |

nice script..
-Offline- |

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

-Offline- |

You WVM cbox code is the main problem you forgot to change some areas...
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...
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
.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;
}
-Offline- |

@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 ^^

-Offline- |

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

-Offline- |