Blindgifs as simple protection

For the protection of the pictures I used a blindgif. A blindgif is a transparent GIF, which was scaled to the size of the picture thaT should be protected. In principle there are in addition 2 possibilities, which I specified for the sake of the completeness both.

The first method is recommended by Dr. Web.

I consider it as too complicated, but it works.

The code down clarifies, what happens.

A table with only one cell is created, whose background picture is the picture which is to be protected. In this example: "tn_pict0168_jpg.jpg". Into this table cell again a table with one cell is placed, that contains only the blindgif, thus: "bild1.gif".

<table border="0" cellspacing="0" cellpadding="0" width="180" height="135" background="tn_pict0168_jpg.jpg">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" width="180" height="135">
<tr>
<td><img src="bild1.gif" width="180" height="135"></td>
</tr>
</table>
</td>
</tr>
</table>



The 2nd possibility has in principle the same solution, is however somewhat more simplier.

Here the picture which is to be protected is defined directly as background picture. The table size depends here only on the blind GIF, which must have however the same size as the picture that has to be protected, otherwise the picture either is cut or tiled within the table cell.

<table background="tn_pict0168_jpg.jpg" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="bild1.gif" width="180" height="135"></td>
</tr>
</table>


Who wants to know, how one visibly represents a code, can check it with the right click "View source".

What you saw, is a further very simple kind of making the source text "invisible".

But to be honest, that is only a small fun protection. Who scrolls far enough downward, finds also the source text.At the beginning of the code about 300 soft returns were inserted. Those are not interpreted by the Browser, lead however in the editor to the fact that the source text stands far down.

How to protect the sourcecode in a better way is explained here.



© Ulrich Hoffmann 2003