count javascript popup

Post your Click counter digestion problems here
Post Reply
litew8
Posts: 2
Joined: Mon Mar 26, 2007 9:02 am

count javascript popup

Post by litew8 »

Script URL: http://ilsiciliano.net/test/photo_album_test.html
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
litew8
Posts: 2
Joined: Mon Mar 26, 2007 9:02 am

javascript

Post by litew8 »

Found a different method.


[Ticket Closed]
Post Reply