Just another simple question

Post your Click counter digestion problems here
Post Reply
Whitecanvas
Posts: 4
Joined: Fri Oct 20, 2006 3:04 am

Just another simple question

Post by Whitecanvas »

Script URL: http://www.hmelevator.com/ccount/
Version of script:
Hosting company:Xibersoft
URL of phpinfo.php:
URL of session_test.php: http://www.hmelevator.com
What terms did you try when SEARCHING for a solution: download counter

Write your message below:

hi master
i want to open a link that will pop up a full screen window by executing javascript function ,, like this , <a href="javascript:openFrameless()"> its working well without ccounter but not when i am adding the ccounter generated url.
the link is in index file , i have added javascript:openFrameless() , as a link to the add url panel , counter is working but its not leading me to the requared frameless window that should be open in a frameless full screen popup window. is there any help again,

best regards, Whitecanvas
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Can you post the Javascript you are using?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Whitecanvas
Posts: 4
Joined: Fri Oct 20, 2006 3:04 am

Post by Whitecanvas »

Klemen Stirn wrote:Can you post the Javascript you are using?
Ok here is the js i am using the same index page
<script>
var windowX = 0 // from left
var windowY = 0 // from top

var urlPop = "flash/hminterface.htm"
var title = "Welcome to HM Elevator"
var autoclose = false

var beIE = document.all?true:false

function openFrameless(){
if (beIE){
NFW = window.open("","popFrameless","fullscreen")
NFW.blur()
window.focus()
var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+urlPop+"' scrolling=no>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
NFW.document.open();
NFW.document.write(frameString)
NFW.document.close()
} else {
NFW=window.open(urlPop,"popFrameless","scrollbars")
NFW.blur()
window.focus()
}
NFW.focus()
if (autoclose){
window.onunload = function(){NFW.close()}
}
}

</script>
then calling this function to open the frameless window with this link
<a href="javascript:openFrameless()">
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Try adding http://www.hmelevator.com/flash/hminterface.htm to the CCount and use the generated code here:

Code: Select all

var urlPop = "flash/hminterface.htm"
For example change it to

Code: Select all

var urlPop = "http://www.hmelevator.com/ccount/click.php?id=XXX"
DOn't change anything else, and the link should remain <a href="javascript:openFrameless()">
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply