The best thing to do about that would be to take it up with your host. Something is obviously set wrong, but they may prefer it that way as a security measure, or it may just be an error on your part that they can help you with. It's been a long time since I've had to concern myself with folder settings (my current FTP client takes care of that stuff automatically), but I do remember that the chmod (or whatever it's called) for a folder - to make it accessible - is a different number than the one for a file - that might be what you are doing wrong. Or there may be a .htaccess file involved. If so, settings in it would have to be altered or the file removed. But regardless, if your host wants things this way, you cannot change them unless they allow you to. The images are accessible, just not from the root of the image folder, which obviously has some odd setting and is required to be accessed separately when opening into a separate window.
To answer your other question, you could do this (addition highlighted):
Code:
<script type="text/javascript" src="/script/motiongallery.js">
/***********************************************
* CMotion Image Gallery- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
* Modified by Jscheuer1 for autowidth and optional starting positions
***********************************************/
</script>
<script type="text/javascript">
function enlargeimage(path){ //function to enlarge image. Change as desired.
document.images.myspot.src = path;
}
</script>
Then place this anywhere on your page in the body section:
HTML Code:
<div>
<img name="myspot" src="/images/image_02.jpg" alt="">
</div>
Bookmarks