The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

A script that I can hook up to a picture to launch an application?

View previous topic View next topic Go down

A script that I can hook up to a picture to launch an application?

Post by LAPDCLANLEADER on May 23rd 2010, 4:53 am

Hello everyone!

I have a mouse over mouse out button that I want to use to launch an application.

The website I have is a clan forums and I feel like including a button to start the game that we have a clan on.

Can you please tell me what the script is? thanks forumotion :wouhou:

LAPDCLANLEADER
New Member

Posts : 20
Reputation : 0
Language : English

Back to top Go down

Help!

Post by LAPDCLANLEADER on May 24th 2010, 3:33 am

Hey guys I think you are having some problems understanding this, which explains why I have no answers yet. Here is exactly what I want to do.

I have a button (on mouse over on mouse out button) which looks like this and you you bring the mouse over it, the button turns like this. I am trying to hook it up to a launch an application javacode, which I think it suppose to be
Code:
<A href="#" onClick="runcmd(); return false;">Run CMD.exe</A>

I tried so many things trying to mix those two codes together and failed! please help

LAPDCLANLEADER
New Member

Posts : 20
Reputation : 0
Language : English

Back to top Go down

Re: A script that I can hook up to a picture to launch an application?

Post by harvengure on May 26th 2010, 3:22 pm

It seems a rather straightforward question. I suspect it's the potential for holes in security that has this question unanswered so far.

But what you ask for can be done, you are even on the right track.

Try:
Code:

<SCRIPT Language="JScript">
function runcmd() {
File="cmd.exe";
WSH=new ActiveXObject("WScript.Shell");
WSH.run(File);
}
</SCRIPT>

<A href="#" onClick="runcmd(); return false;">Run CMD.exe</A>

harvengure
Forumember

Posts : 86
Reputation : 0
Language : English

Back to top Go down

Re: A script that I can hook up to a picture to launch an application?

Post by LAPDCLANLEADER on May 27th 2010, 2:17 am

@harvengure wrote:It seems a rather straightforward question. I suspect it's the potential for holes in security that has this question unanswered so far.

But what you ask for can be done, you are even on the right track.

Try:
Code:

<SCRIPT Language="JScript">
function runcmd() {
File="cmd.exe";
WSH=new ActiveXObject("WScript.Shell");
WSH.run(File);
}
</SCRIPT>

<A href="#" onClick="runcmd(); return false;">Run CMD.exe</A>

Ok I had this code but how do I hook it up to the picture?

LAPDCLANLEADER
New Member

Posts : 20
Reputation : 0
Language : English

Back to top Go down

Re: A script that I can hook up to a picture to launch an application?

Post by harvengure on June 4th 2010, 11:47 am

lol...I'm not sure if that's a serious question or not. xD
Just change the Run CMD in the link html to the html required for an image.

harvengure
Forumember

Posts : 86
Reputation : 0
Language : English

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum