Version of script: 1.1
Hosting company: 1&1.com
URL of phpinfo.php: ?
URL of session_test.php: ?
What terms did you try when SEARCHING for a solution: javascript+popup
Write your message below:
Using javascript to display pictures. Would be cool if the clicks were displayed below the thumbnails. Is there a way to incorporate Ccount into a javascript string:
<a href="JavaScript:popUp('photos/046.jpg',370,245)">
Here's the code I'm using to generate the popups:
Code: Select all
<script LANGUAGE="JavaScript">
<!--
// JavaScript centering adapted by telophase: telophase@telophase.net
// from code by Kate Ward: http//www.kateandmouse.com
// Full permission is granted for use.
function popUp(URL,popW,popH) {
var w = 480, h = 340;
if (document.all || document.layers) {
w = screen.availWidth;
h = screen.availHeight;
}
var topPos = (h-popH)/2, leftPos = (w-popW)/2;
window.open(URL,'popup','resizable, toolbar=no, location=no, status=no, scrollbars=no, menubar=no, titlebar=no, width=' + popW + ',height=' + popH + ',left=' + leftPos + ',top=' + topPos + ',screenX=' + leftPos + ',screenY=' + topPos);
}
// -->
</script>
Thanks for any help