
March 9th, 2006
12:50 AM
Neverside Newbie
Status: Offline!
Pop up windows
Hi, I tried a quick search but all the page displayed was 'brb' and the entire page was white. So, my question is this, is there a way so that on a pop up it does not display the info in the top bar of the window. Right now it's listing my website then - Microsoft Internet Explorer. The main reason I don't want this is that I'm hosting images for my work website and I don't want my personal website address being listed in the top bar becauase it doesn't look professional. Thanks in advance for any suggestions you may have.

March 9th, 2006
07:24 AM
give it a <title>title</title>

March 9th, 2006
08:50 AM
I need a haircut
Status: Offline!
This might help. I placed this inside of index.php within a directory containing all the images (here named 'pics') I planned on linking to:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title><?=$QUERY_STRING;?></title>
<style type="text/css">
body{ margin: 0; }
img{ border: 0; }
</style>
<body>
<?php
if(file_exists($QUERY_STRING)){ ?><a href="javascript:self.close();"><img src="<?=$QUERY_STRING;?>" /></a><?php
} else { ?>Image not found!<?php } ?>
</body>
</html>
Then on the page where I linked to said photo, I used this script and HTML:
<script type="text/javascript">
// generates popups for the photos
function popupPic(url, w, h){
window.open("pics/index.php?"+url,"pics","width="+w+",height="+h+",location=no,menubar=no,toolbar=no,status=no");
}
</script>
...
<a href="pics/index.php?DSC001.jpg" onclick="return false; popupPic('DSC001.jpg', 792, 594);"><img src="picss/DSC001thumb.jpg" alt="" /></a>
Degrades gracefully
Enjoy.
___________________
Jon Culver Chia Pets
Last edited by sparky, March 9th, 2006 08:52 AM (Edited 1 times)