Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-09-2007, 11:26 AM   #1
alex79
Confirmed User
 
Join Date: Jun 2002
Location: france
Posts: 996
How do i write this JavaScript?

i need to rewrite below JS code without "{" and "}"
PHP Code:
<script type="text/javascript">
var 
aaa = {image:"xxx",width:"400",height:"300" };
bbb.create(aaa"yyy");
</script> 
how i do this?
__________________
alex79 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2007, 11:38 AM   #2
gornyhuy
Chafed.
 
gornyhuy's Avatar
 
Join Date: May 2002
Location: Face Down in Pussy
Posts: 18,041
Try this:
var aaa = unescape('&#37;7B') + 'image:"xxx",width:"400",height:"300" ' + unescape('%7D') ;
__________________

icq:159548293
gornyhuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2007, 11:44 AM   #3
alex79
Confirmed User
 
Join Date: Jun 2002
Location: france
Posts: 996
Quote:
Originally Posted by gornyhuy View Post
Try this:
var aaa = unescape('%7B') + 'image:"xxx",width:"400",height:"300" ' + unescape('%7D') ;
is not working..
i receive this error: Expected ";"
__________________
alex79 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2007, 12:17 PM   #4
gornyhuy
Chafed.
 
gornyhuy's Avatar
 
Join Date: May 2002
Location: Face Down in Pussy
Posts: 18,041
Well, if it requires a ; inside the string it would look like this:
var aaa = unescape('%7B') + 'image:"xxx",width:"400",height:"300" ' + unescape('%7D') + ';' ;
__________________

icq:159548293
gornyhuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-12-2007, 05:14 PM   #5
gornyhuy
Chafed.
 
gornyhuy's Avatar
 
Join Date: May 2002
Location: Face Down in Pussy
Posts: 18,041
This is a good example of why coders don't usually help people in threads when they ask for it.
__________________

icq:159548293

Last edited by gornyhuy; 03-12-2007 at 05:14 PM.. Reason: bad emoticon
gornyhuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.