When you first place the image, the dimensions of that image automatically get set into the coding. What you need to do is use the Edit>Find and Replace and do a sitewide change in the code. Highlight the code first then hit Edit>Find and replace.
IE:<img src="images/001.JPG" width="300" height="225" alt="whatever" />
to: <img src="images/001.JPG" width="10" height="20" alt="whatever" />
Just replace the dimensions with the proper dimensions of your image, and voila!
Remember to choose in the drop down menu: Find in: "Entire current local site"
When you change an image outside DW, Right click on the image in Design View > Reset Size. DW will adjust the height and width dimensions in your code.
As Jules said, you'll need to do a Find & Replace > Entire Local Site > Source Code to fix the dimensions on other pages that reference that new image.
Thank you Nancy, for that "reset size" tip. Can't believe I've been a DW user for 10 years or so and I'm still always learning new stuff!
Thanks to both of you...very helpful. Here's another question that maybe you would know. I was told that
there was a code I could paste into my website that would prohinit people from right clicking and downl
oading mp3's from my site. I have a ton of 30 second mp3 samples and I want to prevent right-clicking.
Do you know the code for that? If so, exactly where do I paste it?
What circumstance would a person wish to download "30 second" samples of mp3s? I would be think they would be more inclined to download the whole thing if that was made available. I think that's why there are so many samples available out there. If your samples are somewhere in the middle of the song, like the main chorus part, then that would probably do the trick instead of adding any extraneous code. IMO
Actually it's pretty simple...there are websites that troll the Net looking for exactly that....for free ringtones. I have noticed an
uptick of traffic and when checking the metrics, there is an increase from a site
, that when I went to check it out is an aggregator that searches for free mp3's....30 seconds samples are pe
rfect for ringtones. Long story short, it is exactly the kind of thing that will redflag me to the record industry, so I need to
find a way to prevent it.
- there are other functions that one might need that are also accessed via a right mouse click
- that will not prevent some one from downloading anything
- there is no (even reasonably safe and sure) way to prevent a site visitor from downloading
Then what about this? Create a page with a "captcha" on it. They have to click through to get to the site pages with the mp3s. Then, build a robots.txt file telling search engines not to index those pages.
OR... create a password protected directory or password protected page that only members can enter.
Bad boys -- and their robots -- don't obey robots.txt.
Using the password-protected files will do it so long as you don't mind your members downloading. And if it's worth the trouble to maintain a members database.
Another way to discourage bots is to store the files above site root, and use a form with "captcha" along with a server side script to deliver the files to the user.
I don't expect to eliminate downloading or right clicking, just discourage it and to show the record labels that I am not being negli
gable. If I make it too easy (which apparently I am doing now) then I set myself up for proble
ms. If I can reduce downloading (right clicking) then I am ok. My understanding was there was code you could insert into
the page that would disable right clicking. The other stuff suggested like captcha's are a bit over my head (I'm assum
ing) The other issue is that there are already about 3000 mp3 files on the site already, so the simplest
fix is going to be the best one.
1) IMPOSSIBLE. If media files DIDN'T download, end users wouldn't see or hear anything on your web site. The only way to prevent people from downloading media is to not publish it.
2) ANNOYING & UNFRIENDLY. Disabling right click interferes with advanced browser tools and other functions that some people need to surf.
...show the record labels that I am not being negligable. If I make it too easy (which apparently I am doing now) then I set myself up for problems.
If you don't have written permission from artists/labels to use copyrighted music on your site, you're already in a lot of trouble.