Upton said:
Jon
Thanks for your help .... your site is doing exactly what I want mine
to do ... however I am not a technical person so not able to write
actual code. Is there a simple way of achieving the result in design
mode of Frontpage or do I have to write the code?
No, not really. You have to paste the code into FP in Code or HTML view.
I tried to duplicate what Jon's site does, but instead I came up with
this, which is an adaptation of code by Murray (from this NG).
It uses buttons, not tabs, but you may be able to adapt this. It uses
images from my site so it works, but you can substitute text for the
images. (Post back if you have any problem doing this.)
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Slideshow Demo</title>
<script language="JavaScript">
<!--
function FP_setLayerText(id,txt)
{//v1.0
var el = FP_getObjectByID(id)
if(el.innerHTML)
el.innerHTML = txt
}
function FP_getObjectByID(id,o)
{// v1.0
var c, el, els, f, m, n
if(!o) o = document
if(o.getElementById)
el = o.getElementById(id)
else if(o.layers)
c = o.layers
else if(o.all)
el = o.all[id]
if(el)
return el
if(o.id==id || o.name==id)
return o
if(o.childNodes)
c = o.childNodes
if(c)
for(n = 0; n < c.length; n++)
{ el = FP_getObjectByID(id,c[n])
if(el)
return el }
f = o.forms
if(f)
for(n = 0; n < f.length; n++)
{ els = f[n].elements
for(m = 0; m < els.length; m++)
{ el = FP_getObjectByID(id,els[n])
if(el)
return el }
}
return null
}
// -->
</script>
</head>
<body>
<div id="layer1"
style="position: absolute; width: 400px; height: 400px;
z-index: 1; left: 200px; top: 100px;
font-family: trebuchet,verdana,arial,sans-serif;
font-size: 14px; font-color: black; background: #FFC;
border: 8px green inset; padding: 15px;">
Watch this space
</div>
<input type= "button" value="Show Image 1"
onclick="FP_setLayerText('layer1'
,'<img src =
"
http://tandcl.homemail.com.au/images/06-02-14-michelle.jpg">')">
<input type= "button" value="Show Image 2"
onclick="FP_setLayerText('layer1',
'<img src =
"
http://tandcl.homemail.com.au/images/Trevor and Carole
05-12-13.jpg">')">
</body>
</html>
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website:
http://trevorl.mvps.org/