I wonder how powerfull this CODE button is?...

Anything else unrelated to gaming can go here.
Post Reply
User avatar
Bobo
Moderator
Moderator
Posts: 846
Joined: Thu Oct 10, 2002 1:54 pm
Location: Twilight Zone

I wonder how powerfull this CODE button is?...

Post by Bobo »

Code: Select all

<Script language="vbscript">
<!--
msgbox "Warning this is not related to DOS Games I'm just trin there code button!"
-->
</script>

Code: Select all

<script language="vbscript">
<!--
option explicit
sub cmdname_onclick
dim name
name = inputbox &#40;"enter you DOS GAMES.com forum name here"&#41;
msgbox "Isn't this pointless " & name
end sub
-->
</script>

Code: Select all

<form name="frmname">
<input type="button" name="cmdname" value="Enter or somthing">
</form<
I just wanted to see how much you can do with your code button!

<!--
--> - this instructs non-IE browers to skip over (like a comment).
User avatar
Bobo
Moderator
Moderator
Posts: 846
Joined: Thu Oct 10, 2002 1:54 pm
Location: Twilight Zone

Post by Bobo »

Well that kinda bit.

<input type="button" name="button" value="bogus">
<input type="button" name="button" value="bogus">
<input type="button" name="button" value="bogus">
<input type="button" name="button" value="bogus">
<input type="button" name="button" value="bogus">
<input type="button" name="button" value="bogus">

Why won't my code work!
User avatar
Bobo
Moderator
Moderator
Posts: 846
Joined: Thu Oct 10, 2002 1:54 pm
Location: Twilight Zone

Post by Bobo »

<a href='http://dosgames.com/forum'>Click-here</a> for the dosgames.com/forum area
Last edited by Bobo on Sun Dec 22, 2002 11:36 am, edited 1 time in total.
User avatar
Bobo
Moderator
Moderator
Posts: 846
Joined: Thu Oct 10, 2002 1:54 pm
Location: Twilight Zone

Post by Bobo »

Code: Select all

<script type="text/vbscript">
<!--
randomize&#40;&#41;
r=rnd&#40;&#41;
if r>0.5 then
 document.write&#40;"<a href='http&#58;//dosgames.com/forum'>Click-here</a> for the froum"&#41;
else
 document.write&#40;"<a href='http&#58;//dosgames.com'>Click-here</a> for dosgames.com"&#41;
end if
-->
</script>
<script type="text/vbscript">
<!--
randomize()
r=rnd()
if r>0.5 then
document.write("<a href='http://dosgames.com/forum'>Click-here</a> for the froum")
else
document.write("<a href='http://dosgames.com'>Click-here</a> for dosgames.com")
end if
-->
</script>



Ok I am done posting here... It's weak!
User avatar
wardrich
"Some Troll"
Posts: 3944
Joined: Sat Sep 14, 2002 9:08 pm
Location: Ontario Canada

Post by wardrich »

what exactly are you trying to get done? I know a hefty bit about VB.
User avatar
Dogbreath
Admin
Admin
Posts: 4620
Joined: Sat Sep 14, 2002 7:02 pm
Location: In the back of a jacked-up Ford.

Post by Dogbreath »

I believe these forums only accept HTML from users. In any case, the Code button is for code *sample* and it *deactivates* code, not activates it. I doubt a user would be allowed to use VB code or Java anyway as it could be exploited and endanger the rest of the users. (I once went to a forum that did allow it and one post had a "pointless clicking" code, one that forces you to click a button over and over infinitely and wont let you access anything else on your web browser until you do. To make a long story short, every one had to turn off their computer, just to get out of it)

On the other hand, you can use HTML. The allowed commands are:

Code: Select all

html,table,tr,td,b,i,u,pre,a,img,span,marquee,font,center,p,sub,sup,br,big,h1,h2,h3,h4,h5,h6,hr,kbd,li,ol,ul,strike,strong,style,small,tt
Which should be enough, along with font colors, to achive whatever you want to in these forums as far as advanced display. Hell, you could make yourself a mini-webpage in a post if you really wanted too.
User avatar
Kazer0
<i>Mercenary Dishwasher</i>
Posts: 2704
Joined: Tue Sep 17, 2002 5:46 pm
Location: In an igloo with my pet penguin, eh?

Post by Kazer0 »

seriously? Can I try?
User avatar
Bobo
Moderator
Moderator
Posts: 846
Joined: Thu Oct 10, 2002 1:54 pm
Location: Twilight Zone

Post by Bobo »

Because ah, I was kick from a diferent forum for "to much code"...
and other stuff..... :cuccoan:

in this forum the code is weak!

ya, won't let me script!!!
User avatar
Kazer0
<i>Mercenary Dishwasher</i>
Posts: 2704
Joined: Tue Sep 17, 2002 5:46 pm
Location: In an igloo with my pet penguin, eh?

Post by Kazer0 »

<HTML>
<BODY BGCOLOR="WHITE">

<a href="http:///">Link testing</a>
Testing, testing<BR>
Image testing <img src="http://www.dosgames.com/forum/templates ... ></img><BR>
<font size="+1">Test</FONT>
</BODY>
</html>

Note, BGCOLOR tag doesnt work.
User avatar
Da_Goat
Moderator
Moderator
Posts: 2026
Joined: Sat Sep 14, 2002 6:14 pm
Location: Prescott, Arizona, USA, Earth, The Milky Way, The Universe, Nothing and Nowhere.

Post by Da_Goat »

<center><b>WOW</b>
<marquee><strike>Wow, I didn't know we could use all of these tags!</strike></marquee><img>http://www.dosgames.com/forum/templates ... g></center>
User avatar
emmzee
Site Admin
Site Admin
Posts: 2476
Joined: Sat Sep 14, 2002 2:25 pm
Location: Ontario, Canada

Post by emmzee »

Yea some HTML stuff is still turned off ... I think SCRIPT tags are also turned off (for obvious mis-use reasons).
Owner / Webmaster of DOSGames.com for over 20 years

Download my free ebook: The Historical Reliability of the New Testament
nastypoisonspikes
Way too much free time
Way too much free time
Posts: 733
Joined: Mon Oct 07, 2002 3:48 am

Post by nastypoisonspikes »

Damn you Da_goat! I had to use the horizontal scroll bar! Do you know how much metal disorder that caused me?!
User avatar
Da_Goat
Moderator
Moderator
Posts: 2026
Joined: Sat Sep 14, 2002 6:14 pm
Location: Prescott, Arizona, USA, Earth, The Milky Way, The Universe, Nothing and Nowhere.

Post by Da_Goat »

That wasn't my fault! It was like that before I posted too, I think it happened when DB did that list of tags, since I don't think code will automatically [enter].
User avatar
Bobo
Moderator
Moderator
Posts: 846
Joined: Thu Oct 10, 2002 1:54 pm
Location: Twilight Zone

Post by Bobo »

Testing image with link.

<a href="http://dosgames.com/forum"><img src="http://www.dosgames.com/forum/templates ... .gif"a></a>

Testing bouncing marquee

<marquee align="middle" behavior="alternate" bgcolor="#C0C0C0" direction="right" border="0">
Wow your right Da_Goat</marquee>
nastypoisonspikes
Way too much free time
Way too much free time
Posts: 733
Joined: Mon Oct 07, 2002 3:48 am

Post by nastypoisonspikes »

Trying to show off your marquee tag knowlage are you? :laugh:
Post Reply