Page 1 of 1

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

Posted: Sun Dec 22, 2002 11:20 am
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).

Posted: Sun Dec 22, 2002 11:26 am
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!

Posted: Sun Dec 22, 2002 11:31 am
by Bobo
<a href='http://dosgames.com/forum'>Click-here</a> for the dosgames.com/forum area

Posted: Sun Dec 22, 2002 11:32 am
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!

Posted: Sun Dec 22, 2002 12:38 pm
by wardrich
what exactly are you trying to get done? I know a hefty bit about VB.

Posted: Sun Dec 22, 2002 2:05 pm
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.

Posted: Sun Dec 22, 2002 4:13 pm
by Kazer0
seriously? Can I try?

Posted: Sun Dec 22, 2002 4:22 pm
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!!!

Posted: Sun Dec 22, 2002 4:33 pm
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.

Posted: Sun Dec 22, 2002 7:04 pm
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>

Posted: Sun Dec 22, 2002 7:33 pm
by emmzee
Yea some HTML stuff is still turned off ... I think SCRIPT tags are also turned off (for obvious mis-use reasons).

Posted: Sun Dec 22, 2002 9:11 pm
by nastypoisonspikes
Damn you Da_goat! I had to use the horizontal scroll bar! Do you know how much metal disorder that caused me?!

Posted: Sun Dec 22, 2002 9:35 pm
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].

Posted: Mon Dec 23, 2002 11:01 am
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>

Posted: Mon Dec 23, 2002 6:30 pm
by nastypoisonspikes
Trying to show off your marquee tag knowlage are you? :laugh: