Buttons on Active Desktop???

Discussion in 'Windows Desktop Systems' started by Alex_is_Axel, May 9, 2003.

  1. Alex_is_Axel

    Alex_is_Axel .:: FTPAlex ::.

    Messages:
    1,156
    Location:
    Cheshire, United Kingdom
    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:

    [​IMG]
    [​IMG]
    [​IMG]

    :happy:
     
  2. Alex_is_Axel

    Alex_is_Axel .:: FTPAlex ::.

    Messages:
    1,156
    Location:
    Cheshire, United Kingdom
    so any ideas guys/gurls? :D

    Sincerly Alex:cool:
     
  3. albybum

    albybum Penguin Rancher

    Messages:
    280
    Location:
    Elizabethton, TN
    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>