Make The File Downloadable When The Link Is Clicked?
Jun 29, 2011
I've got some swf files linked to my website, and currently, when clicking on the link, it opens the content in a new window, however I want to make the file downloadable when the link is clicked, how to do this?
I am working on a explorer like tree in a php script. I have the standard + - in a box pics. How to I have the + pic change to the - pic when clicked. Also, how do I get it to change back when another + pic is chosen?
I am trying to make a navigation menu that when a link is clicked, loads content into a hidden div, then shows the hidden div, then changed the class of the list item. If the same link is clicked again the class reverts back to what it was before and then the content div becomes hidden.
I'm trying to finish off this website, but I need to add a script that allows me to click on a link and information is displayed next to it. There are about 20 links. This is our company website and this is what I want to re-create [URL] so when you click on a link, info comes up for what ever you click.
My website uses a very tall iframe to display catalog pages from an external website. I'm using iframes here to make it look like the external catalog pages are on my webpages.
The problem is that when a visitor goes to my page, scrolls down to view all the contents inside the iframe, and then clicks a link inside the bottom of the iframe to goto the next page, that next catalog page will load inside the iframe, but the visitor will still be looking at the bottom of the iframe on my website, and thus has to scroll up to the top of my website to see the top of the iframe's contents.
To see exactly what I mean, go here, scroll down, and click the next page link: [URL]
How can I make it so when someone clicks a link inside the iframe, that the page with the iframe automatically scrolls to the top appearing as if the whole website has refreshed?
I need a counter that will display beside a link, with the number of times the same link has been clicked. I do not have FTP access to the site, since it is based on a CMS.
I've managed to implement the jQuery File Tree [URL] on my site. I am now trying to figure out how to add a function when one of the files is clicked (separate functions for different file types). On the link provided, it explains how to add function to files, but considering my lack of knowledge in Javascript and jQuery, I was wondering where in the code I should put the function. The example the gave was:
function openFile(file) { // do something with file (For now at least
I inserted a form with Expression Web 2 and in the form field properties, I had it say "enter your email address here".
When someone currently clicks in that form field, they have to manually delete that text in order to enter their email address. How do I change it so that my text disappears when someone clicks in that area?
How can I detect when a link has been clicked but the new page is still in the process of loading? The document.location.href property still displays the current location (understandably) not the one that's about to load.
I have a page that reloads every 30 seconds in order to access live data. If a user clicks on a link just prior to the page reloading the reload takes precedence over the link click and this is annoying for the users. Whe the page is about to reload I want to check to see if a link has just been clicked (and therefore a new page is about to load) and, if so, cancel the reload.
I have a page with several links that when clicked open a modal window. The same window for each link, with a form. However inside the form I need to print the id of the link that was clicked. Like so:
I have a link, which triggers a script, but when the link is clicked, i want it to get a border around it... currently tried onclick="this.style.borderWidth = 1px"
So I am trying to set up a registration form that when the user clicks the "Add Another" link then a new text field for the additional person and email field is added to the page. I dont know how to repeat this process to get what I want.
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.1EN" "http:www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <head> <title>Registration Form</title> <meta http-equiv="content-type"
I have a question and I think javascript is the way to go...So here's what im thinkingI have an image of half a quys face. When the mouse goes over it, the image should expand to reveal the whole face, when the image is clicked, it will act jst like a link.
On my site I have a file uploader. <table align="center"class="table"> <tr> <td class="table_header" colspan="2"><b><?=$websitename;?></b> </td> </tr><tr> <td colspan="2" class="upload_info"> <b>Allowed Types:</b> <?=$types?><br /> <b>Max size per file:</b> <!--<?=$max_file_size?>-->50MB.<br /> <b>Max size for all files combined:</b> <!--<?=$max_combined_size?>-->150MB.<br /> </td></tr> <?For($i=0;$i <= $file_uploads-1;$i++) {?> <tr> <td class="table_body" width="120%"><b>Select File:</b> </td> <td class="table_body" width="120%"><input type="file" name="file[]" size="30" /></td> </tr><?}?><tr> <td colspan="2" align="center" class="table_footer"> <input type="hidden" name="submit" value="true" /> <input type="submit" readonly value=" Upload File(s) " /> <input type="reset" name="reset" value=" Reset Form " /> </td></tr><tr></table>
What I want it to do is when they have clicked upload file(s) I want that to change to "your files are being uploaded" and make the button unclickable?
How to play sound file like .wav file with javascript and/or DHTML when some one mouseover to a link. I have done this... but it only works in IE while it does not work in other browsers like firefox and chrome.
I have navigational links on my page, but when someone clicks one, i would like an effect to occur, and then the browser to navigate to the link and it usually would.
Using Dreamweaver 2004. Have a popup that opens loads when home page opens that contains links. Would like for popup to automatically close when a link is clicked. Would be great to have link open in parent page, but I would settle for popup closing.
I am trying to change the color of a link after it has been clicked on WITHOUT using CSS.
When the link is clicked some javascript is called. I can do this in IE by adding this "this.style.color = 'black'". However this doesn't work in other browsers. Anyone know how I could get this to work in other browsers?