Thanks, that worked really well. I've been trying to reply to but it hasn't been working. I didn't realize that this site didn't allow 'html - /html' brackets
EDIT: Now that it is working, I'll show you what I did to modify it .
In my contact section, I have links to htm files that look like this:
- Code: Select all
<a href="#" onclick="
var f1=document.getElementById('frame1');
try{f1.parentNode.removeChild(f1);}
catch(e){alert('First frame already removed.');}
return false;">
<style type="text/css">
.noHScroll { overflow-x:hidden; }
</style>
</head>
<span style="position: absolute; top: 1.5%; left: 95%;">
<span onclick="if(document.getElementById('myIMG').style.display=='none') {document.getElementById('myIMG').style.display='none';} else {document.getElementById('myIMG').style.display='none';}" style="color: ccddee; text-decoration: underline; cursor: pointer;">
<img id="myIMG" style="display: block;" src="images/buttons/closebuttonpng.png" width="60%" height="60%" />
</span>
</span>
<body bgcolor=000000>
<iframe src="header.htm" id="frame1" style="border:0px;" width=100% height=4.4% scrolling="no"></iframe>
<iframe class="noHScroll" src="http://www.myspace.com/vidwarren" id="frame2" style="border:0px;" width=100% height=94%></iframe>
</frameset>
Instead of going to, for example, my Myspace site, users will go to an extension of my site with a frame containing my Myspace and a header frame that will allow them to toggle between other sites.
Thanks again, I'll give you a shout when I get the site hosted so you can see it in action.