generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: setting variables in HTML

Previous Thread :: Next Thread 
Narutozo is not online. Narutozo
Joined: 28 Jul 2013
Total Posts: 1314
23 Jul 2015 02:42 AM
title.
aaagfhjbdfgnjfdnj fdg



def this_is_my_siggy(name = narutozo) puts 'This is #{name.capitalize}'s siggy!) end this_is_my_siggy();
Report Abuse
gooey333 is not online. gooey333
Joined: 24 Mar 2013
Total Posts: 1208
23 Jul 2015 02:43 AM
This is rbxl lua
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
23 Jul 2015 02:44 AM
GO TO STACK EXCHANGE. STOP ASKING THESE NON LUA RELATED QUESTIONS ON ROBLOX


"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
Narutozo is not online. Narutozo
Joined: 28 Jul 2013
Total Posts: 1314
23 Jul 2015 02:44 AM
NO THX.
I CAN ASK ANYTHING I WAAANT :)



def this_is_my_siggy(name = narutozo) puts 'This is #{name.capitalize}'s siggy!) end this_is_my_siggy();
Report Abuse
gooey333 is not online. gooey333
Joined: 24 Mar 2013
Total Posts: 1208
23 Jul 2015 02:44 AM
http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_var_create
Report Abuse
gooey333 is not online. gooey333
Joined: 24 Mar 2013
Total Posts: 1208
23 Jul 2015 02:45 AM
Question answered, and stack exchange won't accept a stupid q like that. Google loves it though
Report Abuse
Narutozo is not online. Narutozo
Joined: 28 Jul 2013
Total Posts: 1314
23 Jul 2015 02:48 AM
jesuuuuuus...
that much lines for a variable



def this_is_my_siggy(name = narutozo) puts 'This is #{name.capitalize}'s siggy!) end this_is_my_siggy();
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
23 Jul 2015 02:59 AM
*cough* That's JavaScript *cough*..

And there's not rlly a way to set "variables" like you may think of them in OOP programming languages, but since HTML is markup, you'd imagine it's strictly strings(:

Essentially, like the example gooey333 provided, you can create a TextNode that you can use later on with the 'createTextNode' function.
Report Abuse
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
23 Jul 2015 04:24 AM
You can't have variables in HTML.
Use JavaScript.
Report Abuse
Narutozo is not online. Narutozo
Joined: 28 Jul 2013
Total Posts: 1314
23 Jul 2015 04:34 AM
k..



def this_is_my_siggy(name = narutozo) puts 'This is #{name.capitalize}'s siggy!) end this_is_my_siggy();
Report Abuse
MisBloxy is not online. MisBloxy
Joined: 13 Sep 2008
Total Posts: 164
23 Jul 2015 04:38 AM
Actually it is possible to have variables in HTML. They are actuall called IDs. They a.normally used for styling HTML pages.
Don't ask me how I know because I'm a girl.


Yay I did it! :D
Report Abuse
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
23 Jul 2015 04:39 AM
But to get the variables you will need to use JavaScript / PHP
Report Abuse
MisBloxy is not online. MisBloxy
Joined: 13 Sep 2008
Total Posts: 164
23 Jul 2015 04:44 AM
But I learned that you can use IDs as a label for div containers. And also for CSS styling.


Yay I did it! :D
Report Abuse
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
23 Jul 2015 04:45 AM
Oh that kind of ID.
I thought you ment lewebsite?var=derp

But those aren't variables?
Report Abuse
MisBloxy is not online. MisBloxy
Joined: 13 Sep 2008
Total Posts: 164
23 Jul 2015 04:47 AM
Oh... no. I was purely talking about HTML. lol


Yay I did it! :D
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
23 Jul 2015 04:47 AM
Mis, those are not variables, they are attributes.
You can't DO anything without javascript/some other lanugage.
Report Abuse
MisBloxy is not online. MisBloxy
Joined: 13 Sep 2008
Total Posts: 164
23 Jul 2015 04:51 AM
Actually IDs can be accessed through CSS as a variable to style multiple containers at once. But I could be wrong. Ha, never trust me if i'm not sure about something.


Yay I did it! :D
Report Abuse
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
23 Jul 2015 04:51 AM
Not sure but I think you can replace id with name.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
23 Jul 2015 04:53 AM
They're more like modifiers than variables.
Variables can usually be read from and written too and have operations done with them. You can't do any of that with HTML/CSS alone.
Report Abuse
MisBloxy is not online. MisBloxy
Joined: 13 Sep 2008
Total Posts: 164
23 Jul 2015 04:53 AM
Awwww, I was wrong? Oh well. Time to go back to high school again.... I fail at this computer stuff.


Yay I did it! :D
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image