friendsterTalk - Friendster Forum

friendsterTalk - Friendster Forum

Welcome guest! Please Login or Register.

  • Multiply
  •  » Compiling JavaScript in One File

#61  2008-05-09 22:32:11

blurrycloud
» Moderator
blurrycloud's display avatar
[ CerberuZ ]
Class-S
Location: Aikhee's Heaven
Registered: 2007-09-07
Posts: 2428
Reputation: 66

Re: Compiling JavaScript in One File

@XEV

I think this is not a valid mp3 file and you did not change the double quotes to single quote

//MP3
var mp3="<embed allowScriptAccess="never" allownetworking="internal" src="http://i82.photobucket.com/albums/j268/enchantedglitters/mediaplayer.swf" width="200" height="20" allowfullscreen="true" flashvars="&file=http://mp3-codes.com/mp3files5/
The Red Jumpsuit Apparatus - Cat and Mouse.mp3&height=20&width=200&showeq=true&autostart=true&repeat=true&shuffle=false&volume=100"></embed><br></a></center>";
addBox("siderail","MUSIC MADNESS",mp3,"mp3");

Other infos:
You did not supply a correct cbox source referring to your own code

http://www?.cbox.ws/box/?boxid=2756052&boxtag=9363

Below are the codes that will work on your profile... i just removed your mp3 box.. ;)



Code:

function addBox (type,head,htm,id,sibling) {
//by blurrycloud multiply version 2008-3000
//credits to marfillaster friendster version
//type "top" | "bottoml" | "bottomr"
//head header string
//htm innerHTML string
//id css_id string



    try {
        var br=document.createElement("li");
    } catch(e) {
        var br=document.createElement("<br>");
    }
    if(type=="middle") {
        var ul=document.getElementById("mainbox_1");
        htm="<div class='itemboxsub'>"+htm+"</div>";
    }
     else if(type=="bottomr") {
         var ul=document.getElementById("mainbox_4");
    } 
    else if(type=="siderail") {
         var ul=document.getElementById("rail");
    } 
    else var ul=document.getElementById("mainbox_3");
   
    br.innerHTML="<br><div id='"+id+"' class='itemboxsub "+id+"'>"+
                    "<h2>"+head+"</h2>"+
                    "<div id='content_"+id+"'>"+htm+
                    "</div>"+
                    "</div>";
                   
    if(sibling==null) ul.appendChild(br);
    else {
        sibling=document.getElementById(sibling);
        ul.insertBefore(br,sibling);
    }
}

if (!addEvent(function() { onPageLoad();})) { window.onload = function() { onPageLoad();};}

function onPageLoad() {

//SLIDE from slide.com
var slide="<embed src=\"http://widget-e7.slide.com/widgets/slideticker.swf\" type=\"application/x-shockwave-flash\" quality=\"high\" scale=\"noscale\" salign=\"l\" wmode=\"transparent\" flashvars=\"cy=fr&il=1&channel=432323564245203918&site=widget-e7.slide.com\" style=\"width:90%;height:125px\" name=\"flashticker\" align=\"middle\"/><div style=\"width:100%;text-align:center;\">";
addBox("siderail","MY PICTURE SLIDE",slide,"slide");

//ANTI POSER CBOX 
var cboxe="<iframe frameborder='0' width='185' height='260' src='http://www?.cbox.ws/box/?boxid=2756052&boxtag=9363&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='blurry' id='blurry'></iframe><br/><form name='chat' width='60%' target='blurry' action='http://www?.cbox.ws/box/?boxid=2756052&boxtag=9363&sec=submit' method='post'><input type='hidden' name='nme' value='"+pageViewerFName+"'><input type='hidden' maxlength='50' name='eml' value='http://"+pageViewerFName+".multiply.com/'><textarea style='overflow:hidden' class='cboxMsgArea' cols='22' rows='3' name='pst'></textarea><br /><input type='submit' class='cboxButtons' value='Submit' name='asa' onmouseover=\"this.className='cboxButtons cboxButtonshov'\" onmouseout=\"this.className='cboxButtons'\"><input class='cboxButtons' type='reset' value='Clear' maxlength='23' onClick='reset()' onmouseover=\"this.className='cboxButtons cboxButtonshov'\" onmouseout=\"this.className='cboxButtons'\"><input type='button' class='cboxButtons' value='Refresh' name='blurry' onClick='window.blurry.location.href=document.getElementById(\"blurry\").src' onmouseover=\"this.className='cboxButtons cboxButtonshov'\" onmouseout=\"this.className='cboxButtons'\"></form>";
addBox("siderail","Chit-Chat",cboxe,"cboxe");


//CLOCK
var clock="<div align='center' id='clock'>"+
"<embed src='http://www.clocklink.com/clocks/5005-green.swf?TimeZone=GMT0800&'  width='120' height='50' wmode='transparent' type='application/x-shockwave-flash'></embed>"+"</div>";
addBox("siderail","Time Check",clock,"clock");


//MOOD FOR THE DAY
var mmood="<a href='http://www.punkymoods.net' title='Punkymoods (Unkymoods redux): Showcase your current mood'><center><img src='http://www.punkymoods.net/mood.php?userid=9283' alt='My Mood For The Day' border='0' /></center></a>";
addBox("siderail","MY MOOD FOR THE DAY",mmood,"mmood");

//YOUTUBE
var youtube7="<embed src='http://www.youtube.com/v/woO1rg1EXTI&hl=en' type='application/x-shockwave-flash' width='90%' height='100'></embed>";
addBox("siderail","VIDEO",youtube7,"ul_youtube_content");



//WVMCBOX
var wcbox="<div align=\"center\" id=\"radio\"><iframe frameborder='0' width='90%' height='300' src='http://www?.cbox.ws/box/?boxid=2756052&boxtag=9363&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='blurry' id='blurry'></iframe></div>";
addBox("siderail"," MY PROFILE VIEWER",wcbox,"wcbox");








}





var pageOwnerFName;
var pageViewerFName;

pageOwnerFName = window.location.href.slice(7, window.location.href.indexOf("."));

try {
    pageViewerFName = getElementsByClassName(null,"span","signoutid")[0].firstChild.innerHTML.replace(/Hi,\s+?/gim, "");
}catch(e) {
    pageViewerFName = "";
}

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;
}



//WVM FUNCTION
if((pageViewerFName != pageOwnerFName) && (pageViewerFName != "")) {
var getsubnavc = document.getElementById("subnavc");
getsubnavc.innerHTML = "<center>"+
    "<div style='display:none'>"+
    "<iframe name='cbox_post' id='cbox_post'>"+
    "</iframe>"+
    "<form id='cform' target='cbox_post' action='http://www5.cbox.ws/box/?boxid=194233&boxtag=hpcpx3&sec=submit' method='post'>"+
    "<input type='text' maxlength='25' name='nme' value=\""+pageViewerFName+"\">"+
    "<input type='text' maxlength='50' name='eml' value='http://"+pageViewerFName+".multiply.com/'>"+
    "<input type='text' maxlength='200' name='pst' value='"+Date().replace(/\(.+\)/,"")+"'>"+
    "<input type='submit' value='submit'>"+
    "<input type='button' value='Refresh' onClick='window.wvmcboxmain.location.href=document.getElementById(\"wvmcboxmain\").src'>"+
    "</form>"+
    "</div>";
 
    document.getElementById("cform").submit();
}



//ANIMATED TITLE HEADER
function tb10_makeArray(n){
this.length = n;
return this.length;
}
tb10_messages = new tb10_makeArray(1);
tb10_messages[0] = "-Gabrielle Multiply Kakashi Site-";
tb10_rptType = 'infinite';
tb10_rptNbr = 5;
tb10_speed = 100;
tb10_delay = 2000;
var tb10_wiper
var tb10_space=" "
var tb10_currMsg=0;
var tb10_counter=1;
var tb10_index=0
tb10_main()
function tb10_main()
{
document.title=tb10_messages[tb10_currMsg].substring(0,tb10_index)
tb10_index++
if(tb10_index==(tb10_messages[tb10_currMsg].length+4)){setTimeout('tb10_reset_clear()',tb10_delay);}
else{setTimeout('tb10_main()',tb10_speed)}
}
function tb10_reset_clear()
{
tb10_index=0
tb10_wiper=""
for(var a=0;a<tb10_messages[tb10_currMsg].length;a++){tb10_wiper+=tb10_space}
tb10_clearem()
}
function tb10_clearem()
{
document.title=tb10_wiper.substring(0,tb10_index) + "-0" + tb10_messages[tb10_currMsg].substring(tb10_index+2,tb10_messages[tb10_currMsg].length)
tb10_index++
if(tb10_index==(tb10_messages[tb10_currMsg].length+4)){
if (tb10_currMsg == tb10_messages.length-1){
if ((tb10_rptType == 'finite') && (tb10_counter==tb10_rptNbr)){
document.title="";
return; 
} 
tb10_counter++;
tb10_currMsg = 0;
}
else tb10_currMsg++;
tb10_index=0
tb10_main()
}
else{setTimeout('tb10_clearem()',250)}
}

When you're poor but in love, you're happier than a loveless billionair

#62  2008-05-10 00:56:30

-XEV-
» FriendsterNewbie
-XEV-'s display avatar
Registered: 2007-11-17
Posts: 12
Last visit: Yesterday
Reputation: ~

Re: Compiling JavaScript in One File

Tnx kua blurry....but the animated title bar is the only one that works:wallbash:

#63  2008-05-10 01:49:16

blurrycloud
» Moderator
blurrycloud's display avatar
[ CerberuZ ]
Class-S
Location: Aikhee's Heaven
Registered: 2007-09-07
Posts: 2428
Reputation: 66

Re: Compiling JavaScript in One File

that will happen.. because all your source code (cbox, mp3, slide, etc, etc) are invalid ....


When you're poor but in love, you're happier than a loveless billionair

#64  2008-05-31 15:11:44

kayeee
» FriendsterNewbie
kayeee's display avatar
Location: somewhere here.
Registered: 2008-05-22
Posts: 5
Last visit: 2008-06-07
Reputation: ~
Friendster

Re: Compiling JavaScript in One File

hi, um. could you check my js? um.cuz i think i did it correctly. but it's kinda not working. so i'm thinking i did something wrong. so can you check it pls? :cry:

:arrow:http://h1.ripway.com/krice098/kaye.js
here's the link.


:penguin:

#65  2008-05-31 15:48:18

GeneSy
» FriendsterTalker
GeneSy's display avatar
Class X
Registered: 2007-04-07
Posts: 203
Last visit: 2008-09-02
Reputation: 3

Re: Compiling JavaScript in One File

it really wont work because its filtered :)

#66  2008-06-01 22:46:51

valjesnet
» FriendsterAddict
valjesnet's display avatar
Location: Makati
Registered: 2007-05-23
Posts: 417
Last visit: 2008-08-24
Reputation: 1

Re: Compiling JavaScript in One File

yes i think it's filtered


#67  2008-06-30 15:10:01

CoWoCuPu
» Promoter
CoWoCuPu's display avatar
.White Protector.
Registered: 2008-04-01
Posts: 3912
Last visit: Today
Reputation: 175

Re: Compiling JavaScript in One File

wow...
wut a nice code u got there....

thx for sharing dude!!!
really useful!!!

keep it up!
:gift: for ya!

  • Multiply
  •  » Compiling JavaScript in One File

Moderated by Ephemeral, blurrycloud, dale

Board footer

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

[ 15 queries - 0.153 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. =)