HANDHELDS & FRAMESETS
Thinking Outside the Frame:
I discovered quite by accident that framed sites are compatible with handhelds, provided that the noframe tag is coded. Actually I tried only with a Blackberry. I used a minimum of code for the demo.
If you want to see the effect immediately try first with a regular browser and then with a blackberry:
I have included the code for completeness:
INDEX.HTM
<html><head><title>Handhelds and Framesets</title></head>
<frameset cols="30%,*" frameborder="0">
<frame name="MENU" src="menu.htm" />
<frame name="TEXT" /></frameset>
<noframe><body><br />Mobile Version<br />
</body></noframe></html>
MENU.HTM
<html><head><style>
body {color:white; background:blue}
a {color:white; text-decoration:none}
a:hover {color:red}
a:active {color:yellow}
</style><script>
if (top.location == self.location) {
self.location.replace ("index.htm")}
</script></head><body>
<div align=center>MENU<br /><hr /><table>
<tr><th><a target="TEXT" href="page1.htm">
Page 1</a></th></tr>
<tr><th><a target="TEXT" href="page2.htm">
Page 2</a></th></tr>
<tr><th><a target="TEXT" href="page3.htm">
Page 3</a></th></tr></table><hr />
</div></body></html>
PAGE1.HTM
<html><head><script>
if (top.location == self.location) {
self.location.replace ("index.htm")}
</script></head><body>
<div align=center>Page 1</div>
</body></html>
PAGE2.HTM
<html><head><script>
if (top.location == self.location) {
self.location.replace ("index.htm")}
</script></head><body>
<div align=center>Page 2</div>
</body></html>
PAGE3.HTM
<html><head><script>
if (top.location == self.location) {
self.location.replace ("index.htm")}
</script></head><body>
<div align=center>Page 3</div>
</body></html>
Clive
Thinking Outside the Frame:
I discovered quite by accident that framed sites are compatible with handhelds, provided that the noframe tag is coded. Actually I tried only with a Blackberry. I used a minimum of code for the demo.
If you want to see the effect immediately try first with a regular browser and then with a blackberry:
I have included the code for completeness:
INDEX.HTM
<html><head><title>Handhelds and Framesets</title></head>
<frameset cols="30%,*" frameborder="0">
<frame name="MENU" src="menu.htm" />
<frame name="TEXT" /></frameset>
<noframe><body><br />Mobile Version<br />
</body></noframe></html>
MENU.HTM
<html><head><style>
body {color:white; background:blue}
a {color:white; text-decoration:none}
a:hover {color:red}
a:active {color:yellow}
</style><script>
if (top.location == self.location) {
self.location.replace ("index.htm")}
</script></head><body>
<div align=center>MENU<br /><hr /><table>
<tr><th><a target="TEXT" href="page1.htm">
Page 1</a></th></tr>
<tr><th><a target="TEXT" href="page2.htm">
Page 2</a></th></tr>
<tr><th><a target="TEXT" href="page3.htm">
Page 3</a></th></tr></table><hr />
</div></body></html>
PAGE1.HTM
<html><head><script>
if (top.location == self.location) {
self.location.replace ("index.htm")}
</script></head><body>
<div align=center>Page 1</div>
</body></html>
PAGE2.HTM
<html><head><script>
if (top.location == self.location) {
self.location.replace ("index.htm")}
</script></head><body>
<div align=center>Page 2</div>
</body></html>
PAGE3.HTM
<html><head><script>
if (top.location == self.location) {
self.location.replace ("index.htm")}
</script></head><body>
<div align=center>Page 3</div>
</body></html>
Clive