A Conversation for h2g2 FAQ: GuideML

What About VBScript?

Post 1

Dark Master - The end is now (2005/03/01) Officially Left

I was wondering if you could use VBScript in your personal space, or is that not allowed because it is a script the same as JavaScript


What About VBScript?

Post 2

Bob McBob

Any tags are automatically commented out by the server.

You also can't use <A HREF="javascript:...... or <LINK HREF="javascript:.... nor the vbscript: in links.

You can't even get away with the ONCLICK attribute.

However, I've just got to work (oncontextselect is right-click, or on macs, ctrl-click) - so you can use some of the obscure ones, though I don't advise it.

When including scripts, I put them in a link to another server (In this case, goecities) and run them from there, such as:
<./>http://www.geocities.com/bobthebluefish/scriptit.htm?alert$L$QBoo!$Q$R</.>

Bob McBob
smiley - geek


What About VBScript?

Post 3

Dark Master - The end is now (2005/03/01) Officially Left

if you use then it remembers it until another font overrides that, including between windows and webpages.
Just noticed that, might be a bug with IE, dont know, but i definitely wouldn't suggest useing it.


What About VBScript?

Post 4

Bob McBob

Sorry, perhaps I should have said to include a tag....

And Sorry sorry, it was oncontextmenu, which should probably be in lowercase

But on a better note, include
smiley - spacesmiley - spacesmiley - spacesmiley - spacesmiley - space ; return false
at the end of the script to supress the actual menu that appears.

Others are ondblclick, onblur, onfocus, onscroll (for text-box or overflow:auto style), onmousedown, onmouseup, onmouseover and onmouseout, (or onmouseenter and onmouseleave), onmousemove

There are others, which work with special items, such as the window, document, body objects, and also form fields.

Bob
smiley - cake

The full code I used was:

something click me something else


What About VBScript?

Post 5

Dark Master - The end is now (2005/03/01) Officially Left

so basically anything but onclick


What About VBScript?

Post 6

Bob McBob

I've gone through seeing which work:

Out of the list above, these work:
ONDBLCLICK="alert()" ONBLUR="alert()" ONFOCUS="alert()" ONSCROLL="alert()" ONMOUSEUP="alert()" ONMOUSEENTER="alert()" ONMOUSELEAVE="alert()" ONMOUSEMOVE="alert()" ONCONTEXTMENU="alert()"

The others are removed by the server, and I don't advise using mouseenter or mouseleave, as these only work with IE 5&6.

Obviously, you can't use the ones for window, document or body.

Look at the test page... A2260711 (<./>test2260711</.&gtsmiley - winkeye


What About VBScript?

Post 7

Dark Master - The end is now (2005/03/01) Officially Left

so onmouseup is like onclick, except when they let go, that would work, i would have thought the server sould have just denied any javascript events


What About VBScript?

Post 8

Bob McBob

They probably will now, as I've pointed out some of them work smiley - winkeye


What About VBScript?

Post 9

Dark Master - The end is now (2005/03/01) Officially Left

this conversation is sure to magically disappear with moderation messages in its place before long


What About VBScript?

Post 10

Bob McBob

Just what do you want to do with all this scripting power anyway...?


What About VBScript?

Post 11

Dark Master - The end is now (2005/03/01) Officially Left

Nothing really, just curious, Why did i create a task manager when the school disabled ours? Why did i make an encryption program when i've got nothing to hide? Just to amuse myself and see if i could probably


What About VBScript?

Post 12

Bob McBob

smiley - nahnahhttp://www.geocities.com/bobthebluefish/scriptit.htm?window.showHelp$L$Qhttp://www.h2g2.com$Q,,$Qfullscreen$Q$R


What About VBScript?

Post 13

Bob McBob

Ooops, that should be

http://www.geocities.com/bobthebluefish/scriptit.htm?window.showHelp$L$Qhttp://www.h2g2.com$Q$R


What About VBScript?

Post 14

Dark Master - The end is now (2005/03/01) Officially Left

I suppose this is off topic, but who cares
You can have my encryption program if you want, its totally secure and wont (hopefully) destroy files when you try to decrypt them witht the wrong password. if you have xp pro though you can probably already encrypt


What About VBScript?

Post 15

Bob McBob

smiley - yikes Destorys files when someone types the wrond password

Password> _
smiley - erm Wibble?

That is the wrong password. This computer will self destruct.....

smiley - run

smiley - star


What About VBScript?

Post 16

Dark Master - The end is now (2005/03/01) Officially Left

i have fixed that bug now tho, it doesn't do it anymore


What About VBScript?

Post 17

Bob McBob

Thank goodness, who knows what would happen if m1cr*$oft got hold of _that_ idea....


What About VBScript?

Post 18

Dark Master - The end is now (2005/03/01) Officially Left

I decided what to do with my scripting power, i created a full search form on my page that opens in a new page, it even keeps the users skin choice. take a look if you want


What About VBScript?

Post 19

Bob McBob

smiley - laugh almost as bad as my personal space....


What About VBScript?

Post 20

Dark Master - The end is now (2005/03/01) Officially Left

yours isn't bad at all, and whats so bad about mine (its not that terible, is it?)


Key: Complain about this post

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more