Page 1 of 1

Just another simple question

Posted: Sat Oct 21, 2006 8:52 pm
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

Posted: Sun Oct 22, 2006 10:53 am
by Klemen
Can you post the Javascript you are using?

Posted: Sun Oct 22, 2006 1:52 pm
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()">

Posted: Sun Oct 22, 2006 5:58 pm
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()">