Buttons on Active Desktop???

Alex_is_Axel

.:: FTPAlex ::.
Joined
2 Jun 2002
Messages
1,156
Goodafternoon everyone,

Is there a way inwhich i can get images on my Active Desktop inwhich i can click and will send me to 'My Computer' or 'My Documents'. If so.. how do i do that?.. Also is there away inwhich the image would change when its hi-lighted and change when click on to another colour or size? (just like when you click on and hi-light the start button)

ive attached images which i would like to have as a button.. 3 images for one button. One being when its not being touched, one being when the mouse is hi-lighted and the last being when the button has been clicked

Can anyone help? :confused: Thank you so much in advance. Im really greatful for all your help and time

Sincerly Alex:cool:

mycomp1.bmp

mycomp2.bmp

mycomp3.bmp


:happy:
 
Follow the steps in MadMatt's tutorial to setup the .vbs files and shortcuts. Modify this html page for your images and vbs files. The top array in the MouseOver script is a preload script. Add your images to the array.

------------------------

<html>
<head>
<title>LaunchPad</title>

<-- ####### VBExec Script ####### -->
<script>
function exec (command) {
if (document.layers && navigator.javaEnabled()) {
window._command = command;
window.oldOnError = window.onerror;
window.onerror = function (err) {
if (err.indexOf ("User didn't grant") != -1) {
alert('command execution of ' + window._command +
' disallowed by user.');
return true;
}
else return false;
}
netscape.security.PrivilegeManager.enablePrivilege
('UniversalExecAccess');
java.lang.Runtime.getRuntime().exec(command);
window.onerror = window.oldOnError;
}
else if (document.all) {
window.oldOnError = window.onerror;
window._command = command;
window.onerror = function (err) {
if (err.indexOf('utomation') != -1) {
alert('command execution of ' + window._command +
' disallowed by user.');
return true;
}
else return false;
};
var wsh = new ActiveXObject('WScript.Shell');
if (wsh)
wsh.Run(command);
window.onerror = window.oldOnError;
}
}
</script>

<-- ####### MouseOVer Script ####### -->
<script language="javascript" type="text/javascript">
var pic=new Array();
pic[0]= new Image();
pic[0].src ="images/aboutUsOFF.gif";
pic[1]= new Image();
pic[1].src ="images/servicesOFF.gif";
pic[2]= new Image();
pic[2].src ="images/portfolioOFF.gif";
pic[3]= new Image();
pic[3].src ="images/contactOFF.gif";
pic[4]= new Image();
pic[4].src ="images/aboutUsON.gif";
pic[5]= new Image();
pic[5].src ="images/servicesON.gif";
pic[6]= new Image();
pic[6].src ="images/portfolioON.gif";
pic[7]= new Image();
pic[7].src ="images/contactON.gif";
pic[8]= new Image();
pic[8].src ="images/logo.gif";
pic[9]= new Image();
pic[9].src ="images/logoSmall.gif";

function chButton(name,source){
var picture=eval("document" + "." + name);
picture.src=source;
}
</script>


</head>
<body bgcolor="#C0AD96" topmargin="0" leftmargin="0" onLoad="loadFile('qnotes.txt')">


<-- ####### Example Link ####### -->
<a onClick="exec('AnyShortcutName.vbs'); return false;" href="javascript:void(0)"><img src="../images/AboutUs.jpg" alt="Play" name="main1" onmouseover="chButton('main1','images/aboutUsON.gif')" onmouseout="chButton('main1','images/aboutUsOFF.gif')" border="0" /></a>

</body>
</html>
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,623
Latest member
AndersonLo
Back