Jump to content

How can i code dropbox with links and download button


adamsevera

Recommended Posts

Hello,

 

How can i code the following.

 

5LFrLrC.jpg

 

i want to add a dropdown box in my wallpaper site (wordpress powered) with multiple resolution options

when user selects "1920 x 1080" and hits download a wallpaper with "1920 x 1080" resolution must start downloading

when user selects "1024 x 768" and hits download a wallpaper with "1024 x 768" resolution must start downloading.

 

I know this is pretty simple and stupid question but i am honestly quite confused on how to do this, can this be done with just html/css or does this need some php codes too?

 

Can you please please

Edited by adamsevera
Link to comment
Share on other sites

The way i solved :

<form name="mycombo">
<p><select name="example" size="1">
    <option      value="#Link1">JavaScript Kit</option>
    <option value="#Link2">Coding Forums</option>
      <option> value="#Link3">Dynamic Drive</option>
</select></p>
    <input type="button" name="test" value="Go!" onClick="go()">
    <form/>
function go(){
location=
document.mycombo.example.
options[document.mycombo.example.selectedIndex].value
}

Link to comment
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.