Terms/Conditions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Yep I know a real dummy,
I just want a smaller page/whatever to open on the same page when some one
clicks on links to read.
Terms and Conditions
Privacy Statement
etc
TIA
 
Doug said:
Yep I know a real dummy,
I just want a smaller page/whatever to open on the same page when
some one clicks on links to read.
Terms and Conditions
Privacy Statement
etc
TIA

NAP (not a problem)

<html>
<head>
<script type="text/javascript">
function spawnJimcoPopup(url, name, options, h, w, x, y, scaleType)
{
if (scaleType == 'percent')
{ h = (h * screen.availHeight) / 100
w = (w * screen.availWidth) / 100 }

if (x == 'center')
x = (screen.availWidth - w) / 2
if (y == 'center')
y = (screen.availHeight - h) / 2

options += ',width=' + w + ',height=' + h
+ ',left=' + x + ',top=' + y

var newWindow = window.open(url, name, options)
newWindow.focus()
}
</script>
</head>
<body>

<a href="*" target="_blank"
onclick="spawnJimcoPopup
('tac.html','',
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no',
'180','200', 'center','center','pixel');return false;"
title="Click here for Terms and Conditions">Terms and Conditions</a>
</body>
</html>

tac.html
=====
<html>
<head></head>
<body>
Terms and Conditions<br>
blah blah blah<br>
blah blah blah<br>
blah blah blah<br>
</body>
</html>

Alter h and w to change the size of the window
If scaleType is pixel, they will be the height and width of the window in
pixels
If scaleType is percent, they will be the height and width of the window in
percent of the available window size

Alter x and y to change the position of the window
If x is "center", it will centre in the x direction (i.e left to right)
If x is not "center", it will position at x pixels from left

If y is "center", it will centre in the y direction (i.e top to bottom)
If y is not "center", it will position at y pixels from top

You can add similar code for Privacy Statement
<a href="*" target="_blank"
onclick="spawnJimcoPopup
('privacy.html','',
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no',
'180','200', 'center','center','pixel');return false;"
title="Click here for Privacy Statement">Privacy Statement</a>

privacy.html
=====
<html>
<head></head>
<body>
Privacy Statement<br>
blah blah blah<br>
blah blah blah<br>
blah blah blah<br>
</body>
</html>
 
Many thanks works fine
Regards Doug

Trevor L. said:
NAP (not a problem)

<html>
<head>
<script type="text/javascript">
function spawnJimcoPopup(url, name, options, h, w, x, y, scaleType)
{
if (scaleType == 'percent')
{ h = (h * screen.availHeight) / 100
w = (w * screen.availWidth) / 100 }

if (x == 'center')
x = (screen.availWidth - w) / 2
if (y == 'center')
y = (screen.availHeight - h) / 2

options += ',width=' + w + ',height=' + h
+ ',left=' + x + ',top=' + y

var newWindow = window.open(url, name, options)
newWindow.focus()
}
</script>
</head>
<body>

<a href="*" target="_blank"
onclick="spawnJimcoPopup
('tac.html','',
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no',
'180','200', 'center','center','pixel');return false;"
title="Click here for Terms and Conditions">Terms and Conditions</a>
</body>
</html>

tac.html
=====
<html>
<head></head>
<body>
Terms and Conditions<br>
blah blah blah<br>
blah blah blah<br>
blah blah blah<br>
</body>
</html>

Alter h and w to change the size of the window
If scaleType is pixel, they will be the height and width of the window in
pixels
If scaleType is percent, they will be the height and width of the window in
percent of the available window size

Alter x and y to change the position of the window
If x is "center", it will centre in the x direction (i.e left to right)
If x is not "center", it will position at x pixels from left

If y is "center", it will centre in the y direction (i.e top to bottom)
If y is not "center", it will position at y pixels from top

You can add similar code for Privacy Statement
<a href="*" target="_blank"
onclick="spawnJimcoPopup
('privacy.html','',
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no',
'180','200', 'center','center','pixel');return false;"
title="Click here for Privacy Statement">Privacy Statement</a>

privacy.html
=====
<html>
<head></head>
<body>
Privacy Statement<br>
blah blah blah<br>
blah blah blah<br>
blah blah blah<br>
</body>
</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top