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
|
  |
| Joined: 24 Mar 2013 |
| Total Posts: 1208 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|