I want to achieve the following:
- Display an image inside a
<div>
element. - Image is served using a image-server-php (
image.php
) to "mask" the image location. - The image should be clickable with another link opening after click.
- Image is hidden behind a sorry.gif to make sure that the user cannot "right click and save image".
Below is my code:
<!-- IMAGE FRAME -->
<div class="img-frame">
<!-- CLICKABLE TO TAKE TO ANOTHER PAGE -->
<a href="javascript: void(0)" OnClick="window.open('page1.php'); return false;" class="img-preview" title="Click here for more info" >
<!-- COVER IMAGE TO STOP PPL DOWNLOADING IMAGES -->
<div class="CoverImage">
<!-- IMAGE SERVED VIA A IMAGE-SERVER-PHP -->
<img src="image.php?f=three.jpg" class="scale-with-grid" width="300px" height="275px" />
<div class="cover"><img src="assets/mm/sorry.gif" class="scale-with-grid"/></div>
</div>
<!-- END COVER IMAGE -->
</a>
<!-- END CLICKABLE -->
</div>
<!-- END IMAGE FRAME --->
Is there a way I can merge the two images into one, in the same <img>
element?
I need it inside the <img>
element because I use prettyPhoto
for gallery creation.