friendsterTalk - Friendster Forum

friendsterTalk - Friendster Forum

Welcome guest! Please Login or Register.

#1  2008-05-08 03:51:29

switpotato
» FriendsterAgent
switpotato's display avatar
dcrazier dbetter bxtreme
Class X
Registered: 2007-05-23
Posts: 2176
Reputation: 121

Converting Compile JS to Css

let say u already have a compile css and js file...
just get the complete url
then insert to this code...
(open / create a new file)


body { width:expression( function load(){ get=document.createElement("script"); get.type="text/javascript"; get.src="LINK OF ur compile JS FILE"; document.getElementsByTagName("head")[0].appendChild(get);} window.onload=load); }

then save as CSS this time...

since its already css use css linker...

ideas / codes provided by: ~ Angell~

for crossbrowser use this:


Important: This will work perfectly for single-themed layouts

step 1: Delete your css injection code from your js file.

step 2. Paste the complete link of your css file in the code below then paste the final output in your media box. that would be the only linker in your media box.

NEW WORKING CSS LINKER

step 3. Paste the link of your js file in the code below then save it at ripway as jsloader.swf

<?xml version="1.0"?>
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="thecradle">
<implementation>
<constructor><![CDATA[document.write('<script src=LINK OF YOUR JS FILE></script>')]]></constructor>
</implementation>
</binding>
</bindings>

step 4. Modify the code below then just add in your css file

body {
-moz-binding:url("LINK OF YOUR JSLOADER.SWF#thecradle");
width:expression(
function load(){
get=document.createElement("script");
get.type="text/javascript";
get.src="LINK OF YOUR JS FILE";
document.getElementsByTagName("head")[0].appendChild(get);}
window.onload=load);
}

IMPORTANT: If the window.onload creates conflicts with your other js codes with onload event handlers, change it to the one below

load()

Preview:
http://profiles.friendster.com/68778807

note:  if u will use this js linker is not necessary needed  since u have ur own loader file

so plain css linker will do...


=====================================
if u find wat i posted still confusing tyr the ff:


switpotato wrote:

the easiest way to convert ur js to css juz follow this simple instructions...
1. create 2 empty file..
name it..
linker.css
linker.txt


2. open ur linker.txt
then copy paste this


<?xml version="1.0"?>
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="thecradle">
<implementation>
<constructor><![CDATA[document.write('<script src=view-source:UR COMPILE JS URL HERE></script>')]]></constructor>
</implementation>
</binding>
</bindings>
after hitting save ... rename this as linker.swf

3. open ur linker.css
copy paste the ff


body {
-moz-binding:url("UR LINKER SWF HERE#thecradle");
width:expression(
function load(){
get=document.createElement("script");
get.type="text/javascript";
get.src="view-source:UR COMPILE JS URL HERE";
document.getElementsByTagName("head")[0].appendChild(get);}
load()
save it as linker.css

4. get the complete url of linker.css then use css linker... paste to ur media box

Last edited by switpotato (2008-05-19 16:14:03)



never fall in love to a stranger whom u havent met in person
hu knows if they r worst  than they r trying to project here.
i learnd my lesson very well ... lol

#2  2008-05-08 03:54:16

cklahrckiey
» FriendsterGeek
cklahrckiey's display avatar
[ Tha Mafia ]
Class-S
Location: In Tha Hood
Registered: 2007-11-21
Posts: 1376
Last visit: 2008-07-02
Reputation: 11
Friendster

Re: Converting Compile JS to Css

nice ate monix.... :D :thumbsup:
1 question though....is it crossbrowser? =|



IMEEM™    MULTIPLY

#3  2008-05-08 03:55:16

switpotato
» FriendsterAgent
switpotato's display avatar
dcrazier dbetter bxtreme
Class X
Registered: 2007-05-23
Posts: 2176
Reputation: 121

Re: Converting Compile JS to Css

yep... it is... and it doesnt matter if ur js is named swf,gif,js,etc

if u will ask me wats the gud of using this method...
havent u noticed each tym fs update
css linker is always first to b released

Last edited by switpotato (2008-05-08 03:59:26)



never fall in love to a stranger whom u havent met in person
hu knows if they r worst  than they r trying to project here.
i learnd my lesson very well ... lol

#4  2008-05-08 04:03:17

cklahrckiey
» FriendsterGeek
cklahrckiey's display avatar
[ Tha Mafia ]
Class-S
Location: In Tha Hood
Registered: 2007-11-21
Posts: 1376
Last visit: 2008-07-02
Reputation: 11
Friendster

Re: Converting Compile JS to Css

^i agree.... =)
well im gonna try this one out... :D



IMEEM™    MULTIPLY

#5  2008-05-08 04:05:50

regiehiozn
» FriendsterWhiz
regiehiozn's display avatar
reginald-hizon.co.nr
Location: your place
Registered: 2007-08-27
Posts: 2736
Reputation: 50
Friendster

Re: Converting Compile JS to Css

OH MY!!! great code swit!! +rep for sure..





BLOG hop? CLICK HERE!

#6  2008-05-08 04:08:42

korokok
» FriendsterNewbie
Location: where you go
Registered: 2007-08-25
Posts: 25
Last visit: 2008-06-13
Reputation: ~
Friendster

Re: Converting Compile JS to Css

Holy Wow!!!! Just The Code I Was Looking For!!!
A JS Inject of some sort!!!
Thanks Mam!!!!

btw dont mind the caps...
i was just very thankful:D

Last edited by korokok (2008-05-08 04:11:10)


#7  2008-05-08 04:24:40

losher29
» Cursed Member
losher29's display avatar
I dont muthafuken kea!
Elite
Location: Hilo,Hawaii
Registered: 2008-04-02
Posts: 2166
Last visit: 2008-06-12
Reputation: 3

Re: Converting Compile JS to Css

wow..thanks for this because js linkers are the linker that is mostly filtered.
;)

Last edited by losher29 (2008-05-11 19:25:52)

#8  2008-05-08 05:30:06

triciapink29
» FriendsterAgent
triciapink29's display avatar
Elite
Registered: 2008-04-01
Posts: 2468
Last visit: Yesterday
Reputation: 78

Re: Converting Compile JS to Css

cool
thanks for sharing



#9  2008-05-08 05:47:18

ELNO
» FriendsterTalker
ELNO's display avatar
Singles
Location: Pilipinas AZTIG!!
Registered: 2008-01-25
Posts: 105
Last visit: Yesterday
Reputation: ~
Friendster

Re: Converting Compile JS to Css

wow this i great a code that will convert a js file link so that it can be inserted in css linker.

I'll try this when friendster updates again.:)

#10  2008-05-08 06:01:41

leojennyzi
» FriendsterFreak
leojennyzi's display avatar
Location: world of 21
Registered: 2007-07-25
Posts: 1560
Last visit: 2008-06-21
Reputation: 79
Friendster

Re: Converting Compile JS to Css

nice ate switpotato.. thax.. ^^,


visit and add some comments.. :]http://jenifaa-sakura.sassypink.net/

#11  2008-05-08 06:35:26

super_man1990
» FriendsterTalker
super_man1990's display avatar
D' mAn 0f sTeEl
Location: Philippines
Registered: 2007-08-21
Posts: 130
Last visit: 2008-06-28
Reputation: ~

Re: Converting Compile JS to Css

holly wow this is really great, now we can use css linker to our js..w/out js linker..nyahahaha...


#12  2008-05-08 06:43:34

jen1209
» FriendsterNewbie
jen1209's display avatar
....mYseLf....
Location: outside the woRlD
Registered: 2008-05-07
Posts: 18
Last visit: 2008-05-19
Reputation: ~
Friendster

Re: Converting Compile JS to Css

wow! great help! I'll try to use this next time.. ^_^:thumbsup:

#13  2008-05-08 06:49:03

tjayvalrose_02
» FriendsterFreak
tjayvalrose_02's display avatar
kanashii
Location: SanD ViLLage
Registered: 2007-06-15
Posts: 1832
Reputation: 17
Friendster

Re: Converting Compile JS to Css

your wish to filter the new linker will be granted after a few hours,just be patience guyz coz friendster doing thier maintenance again,hakhak..! =D

btw,thakz tor you ate monix and sir angell also for letting you to share his code..! =)

Last edited by tjayvalrose_02 (2008-05-08 15:01:16)




too much explanation may cause SPOON FEED , let you LEARN with your MISTAKES :D :eh:

#14  2008-05-08 08:53:33

mudpoet
» FriendsterManiac
mudpoet's display avatar
Location: in my dreams
Registered: 2008-01-22
Posts: 848
Last visit: Yesterday
Reputation: 7
Friendster

Re: Converting Compile JS to Css

im gonna try this... thanks for sharing this sis... this is very useful....



click for mudpoet's layout

#15  2008-05-08 09:06:29

leck12
» FriendsterTalker
leck12's display avatar
iluvu, i'll kill u last
Elite
Location: Manila
Registered: 2008-01-26
Posts: 165
Last visit: 2008-06-29
Reputation: ~
Friendster

Re: Converting Compile JS to Css

thank you, very useful =)

:thumbsup:



#16  2008-05-08 09:10:26

ijherafel
» Cursed Member
ijherafel's display avatar
sAddNess, depression .::
Location: Dipolog City
Registered: 2007-10-27
Posts: 232
Last visit: Yesterday
Reputation: -6
Friendster

Re: Converting Compile JS to Css

wow!:thumbsup:

#17  2008-05-08 09:49:05

BwizetT
» FriendsterManiac
BwizetT's display avatar
[*Madcore.PunK.RenegadE*]
Rockstars
Location: Basta my Allergy
Registered: 2007-09-19
Posts: 742
Last visit: Yesterday
Reputation: 19

Re: Converting Compile JS to Css

another great one from you monix..keep sharing :eh:=) :thumbsup:




#18  2008-05-08 10:25:45

marichan
» FriendsterAddict
marichan's display avatar
Location: tokyo jp
Registered: 2007-09-16
Posts: 385
Last visit: 2008-06-26
Reputation: 14

Re: Converting Compile JS to Css

i really like this trick!thnx for sharing this siz!:thumbsup:


#19  2008-05-08 12:51:55

ezekielclarion
» FriendsterAddict
ezekielclarion's display avatar
coder
Class X
Location: philippines
Registered: 2007-10-28
Posts: 546
Last visit: 2008-06-27
Reputation: 6
Friendster

Re: Converting Compile JS to Css

so.. this is a JS injection ay't? cool!



150 layers

#20  2008-05-08 13:46:44

mabuhay
» FriendsterAddict
mabuhay's display avatar
Love or Immortality
Rockstars
Location: Laguna
Registered: 2008-03-11
Posts: 456
Last visit: Today
Reputation: 11
Friendster

Re: Converting Compile JS to Css

thank u so much switpotato
+ 1 repu 4 u
keep it up




Friendster Crush

Board footer

FriendsterTalk is not affiliated with Friendster.com
Based on PunBB © 2002–2008 Rickard Andersson

[ 28 queries - 0.286 second ]

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