Új hozzászólás Aktív témák

  • Orionhilles

    senior tag

    Sziasztok!

    Megcsinálnám a saját oldalszválasztómat (ahol ki lehet választani, hogy transmission, zenelejátszót szeretnék indítani) szeretném ha az egyik a linuxdash-t indítaná. Próbáltam szerkeszteni a scriptet, de nem jött össze. A linuxdash az <málna_ip>/linuxdash címen található. Mit kellen a scripten ehhez igazítanom? Nézzétek el nekem, még nem programoztam :R

    Itt van amit eddig csináltam:
    <html>
    <head>
    <script type="text/javascript">
    var ip = location.host;

    function changePort(port)
    {
    window.location = "http://" + ip + ":" + port;
    }

    function changetolinuxdash
    {
    window.location = "http://" + ip + "/linuxdash" ;
    }
    </script>
    </head>
    <body bgcolor=#aaaaaa>
    <h1 align=center>Choose your destiny!</h1>
    <div align=center>
    <button onclick="changePort(1337)">HiFi Music player</button>
    <button onclick="changetolinuxdash">LinuxDash</button>
    <button onclick="changePort(9091)">Torrent client</button>
    </div>
    </body>
    </html>

    Válaszotokat előre is köszönöm! :R

    [ Szerkesztve ]

    – Yet, thou serves with thine eyes clouded in chaos. Thou, bound in the cage of madness. I am he who commands those chains – Fate/Zero Berserker Mad Enchantment

Új hozzászólás Aktív témák