Beste mensen,
Hoe kan ik dit stukje script:
<script language="JavaScript">
function noClick() {
if ((event.button==2)) {
alert('© Copyright by Webmaster Rieksie.nl')}}
document.onmousedown=noClick
</script>
Inbouwen in:
<script language="JavaScript" src="popup.js" type="text/javascript"></script>
</html>
<script>
var anchors = document.getElementsByName('popup');
for(var n = 0; n < anchors.length; ++n)
{
anchors[n].onclick=function() {
var img = new Image;
img.onload = function() {
var win = window.open('', '', 'width='+this.width+',height='+this.height);
win.document.open('text/html', 'replace');
win.document.writeln('<html><head><title>Foto album van Nick</title><meta http-equiv="imagetoolbar" content="no"></head><body topmargin="100" leftmargin="100" onClick="self.close()"style="margin:0;padding:0" >'+
'<img src="'+this.src+'" alt=""></body></html>' );
win.document.close();
}
img.src = this.href;
return false;
}
}
</script>
Mijn dank is zeer groot voor alles hulp
Groet richard
2.292 views