This sounds good, but i dont realy know how to use ist.
This part i must put in the CSS of the Style?! Right?
Code:
.imglimit {
cursor: pointer;
border: dotted 1px black;
}
But where i have to put this part?
Code:
/*
LEAVE THIS NOTICE IN PLACE
FI Image Resizing script - Daz - ForumImages.com
For use and distribution terms please check;
http://www.forumimages.com/terms.php
Modifications by Politics.be
-- Onclick handler is automatically handled bij JavaScript now, compatible with IE and Mozilla
*/
var imgResizeMsg = 'Click to view the image';
var imgWidthMax = 600;
var imgWidthSizeTo = 400;
var imgClassName = 'imglimit';
//window.onload = fiImageResize;
function fiImageResize() {
if (document.images.length) {
var docImg = document.images;
for ( var i = 0 ; i < docImg.length ; i++)
if (docImg[i].width > imgWidthMax && docImg[i].id != 'forumlogo') {
docImg[i].width = imgWidthSizeTo;
docImg[i].title = imgResizeMsg;
docImg[i].className = imgClassName;
docImg[i].onclick = fiImageWinOpen;
}
}
}
function fiImageWinOpen(e) {
if( window.event )
window.open(window.event.srcElement.src,'PoliticsViewer','menubar=no, toolbar=no, location=no, directories=no, fullscreen=no, titlebar=yes, hotkeys=no, status=no, scrollbars=yes, resizable=yes');
else
window.open(e.target.src,'PoliticsViewer','menubar=no, toolbar=no, location=no, directories=no, fullscreen=no, titlebar=yes, hotkeys=no, status=no, scrollbars=yes, resizable=yes');
}