ima post my script and everything i'm working on. my problem, is i can't figure out how to pass a variable through my j/s into the next page so that the title of the page is whatever the $title var is. here's my script:
<script language="JavaScript">
var version4 = (navigator.appVersion.charAt(0) == "4");
var popupHandle;
function closePopup() {
if(popupHandle != null && !popupHandle.closed) popupHandle.close()
}
function displayPopup(position,url,name,height,width,evnt)
{
var properties = "toolbar=0,location=0,height="+height
properties = properties+",width="+width
var leftprop, topprop, screenX, screenY, cursorX, cursorY, padAmt
if(navigator.appName == "Microsoft Internet Explorer")
{
screenY = document.body.offsetHeight
screenX = window.screen.availWidth
}
else
{ // Navigator coordinates
// screenY = window.outerHeight
// screenX = window.outerWidth
// change made 3/16/01 to work with Netscape:
screenY = screen.height;
screenX = screen.width;
}
if(position == 1) // if POPUP not CENTER
{
cursorX = evnt.screenX
cursorY = evnt.screenY
padAmtX = 10
padAmtY = 10
if((cursorY + height + padAmtY) > screenY)
// make sizes a negative number to move left/up
{
padAmtY = (-30) + (height*-1);
// if up or to left, make 30 as padding amount
}
if((cursorX + width + padAmtX) > screenX)
{
padAmtX = (-30) + (width*-1);
// if up or to left, make 30 as padding amount
}
if(navigator.appName == "Microsoft Internet Explorer")
{
leftprop = cursorX + padAmtX
topprop = cursorY + padAmtY
}
else
{ // adjust Netscape coordinates for scrolling
leftprop = (cursorX - pageXOffset + padAmtX)
topprop = (cursorY - pageYOffset + padAmtY)
}
}
else // CENTER
{
leftvar = (screenX - width) / 2
rightvar = (screenY - height) / 2
if(navigator.appName == "Microsoft Internet Explorer")
{
leftprop = leftvar
topprop = rightvar
}
else
{ // adjust Netscape coordinates for scrolling
leftprop = (leftvar - pageXOffset)
topprop = (rightvar - pageYOffset)
}
}
if(evnt != null)
{
properties = properties+",left="+leftprop
properties = properties+",top="+topprop
}
closePopup()
popupHandle = open(url,name,properties)
}
//-->
</script>
and here's the part where it's used:
<a href="javascript:void(0)"onmouseover="window.status='Click to find out what the Web Enhanced package contains';return true"
onClick="displayPopup(1,'business_listing_example.php?title=test#webenhan','standplus',100,400,(version4 ? event : null)); "><font size="-1">Includes</font></a>
the script does it's job completely all except for the var that i'm trying to pass:
business_listing_example.php?title=test#webenhan
any help is so greatly appreciated, been trying to figure this dumb thing out for two days! thanks!