i been going back and forth for a couple weeks and my client is gettin pissed.
when you launch the site www.cannonbeachcamping.com theres a link to launch a javascript window..
the site itself is a frameset and i have gone thru all the documents and they all have titles assigned to them.
for some reason it wont show up in the window title..it just says untitled document.
i have tried several scripts but none seem to be helping..is this because of framesets or whats the deal?
Khalid Ali
10-14-2003, 04:29 PM
you will need to set the title in the frameset page or you can do thi sdynamically from the js function wehre you open this page e.g
function openpopup(){
var popurl="searanch/home.html"
winpops=window.open(popurl,"","width=875,height=600,")
winpops.document.title = "Your pages title here";
}
unregistered
10-14-2003, 04:43 PM
awesome..thanks for your prompt reply khalid,
no that didnt work either...heres a copy of the code as it looks on the page.
//JavaScript tutorials and over 400+ free scripts
function openpopup(){
var popurl="searanch/home.html"
winpops=window.open(popurl,"","width=875,height=600,")
winpops.document.title = "Cannon Beach Camping";
}
</script>
<font face="Arial, Helvetica, sans-serif" size="2">Welcome to Sea Ranch RV &
where th eurl (index.html) is a frameset page that has 3 frames and one of the frames has further 2 frames,it shows the title in the title bar...
since I can't see much of your code,,can't say much
unregistered
10-14-2003, 09:34 PM
I wish it did...i feel like an idiot but that doesnt seem to be showing up either...now i get an error on page in the bottom of the window bars as well. i checked the frameset and its one row with 2 columns and i am not sure what you mean by the "frameset thingy...basically i have an index page with just an gif animation and a link to launch a frameset that is searanch/home.html is loaded into the popup. the left side is known as left.html and the right side starts with a welcome.html page. All the pages have been titled in dreamweaver and i see them there in the code...so i know its not because they arent titled..i think its this javascript thing which i am not too knowledgable on...heres what my current code on the index.html page looks like now.
<html>
<head>
<title>searanch stables and camping</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v2.0
if (document.MM_swapImgData != null)
for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
}
function MM_preloadImages() { //v2.0
if (document.images) {
var imgFiles = MM_preloadImages.arguments;
if (document.preloadArray==null) document.preloadArray = new Array();
var i = document.preloadArray.length;
with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
preloadArray[i] = new Image;
preloadArray[i++].src = imgFiles[j];
} }
}
function MM_swapImage() { //v2.0
var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
(objStr.indexOf('document.all[') ==0 && document.all ==null))
objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
obj = eval(objStr);
if (obj != null) {
swapArray[j++] = obj;
swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
obj.src = MM_swapImage.arguments[i+2];
} }
document.MM_swapImgData = swapArray; //used for restore
}
//-->
</script>
<style type="text/css">
<!--
.linkstyle { font-family: Arial, Helvetica, sans-serif; font-size: 11pt; font-style: normal; font-weight: normal; font-variant: normal; text-decoration: underline}
-->
</style>
<meta name="keywords" content="cannon beach camping, cannon beach, sea ranch rv park and stables, searanch, sea ranch, oregon horses, oregon camping, oregon rv, rv oregon, haystack rock, horse rides oregon">
<meta name="description" content="Welcome to Cannon Beach Sea Ranch RV Park & Stables- your camping, rv, cabin destination at cannon beach oregon.">
<meta name="keywords" content="cannon beach camping, cannon beach, sea ranch rv park and stables, searanch, sea ranch, oregon horses, oregon camping, oregon rv, rv oregon, haystack rock, horse rides oregon">
<meta name="description" content="description">
<meta name="Cannon Beach Camping" content="Cannon Beach Camping">
</head>