I have the following Script in my web page reduce to two pages.
<script>
function details()
{
document.getEle mentById('detai ls').style.visi bility='visible ';
document.getEle mentById('capab ilities').style .visibility='hi dden';
}
function capabilities()
{
document.getEle mentById('detai ls').style.visi bility='hidden' ;
document.getEle mentById('capab ilities').style .visibility='vi sible';
}
</script>
With the following HTML code..
<table id="Menu" border="1" width="100%">
<tr>
<td><a href="#" onclick="detail s()">Details</a></td>
<td><a href="#" onclick="capabi lities()">Capab ilities</a></td>
</tr>
</table>
<div id="details" style="position :absolute; visibility:visi ble;">
<table border="0"><cap tion>DETAILS</caption>
<tr><td>Name: </td><td>Enter name</td></tr>
<tr><td>Email :</td><td><a
href="mailto:an yname@anydomain .com">EmailName </a></td></tr>
<tr><td>D.O.B :</td><td>Date of Birth</td></tr>
</table>
</div>
<div id="capabilitie s" style="position :absolute; visibility:hidd en;">
<table border ="0"><caption>C APABILITIES</caption>
<tr><td>Java Script</td><tr>
<tr><td>Java Script</td><tr>
<tr><td>Langaug es</td><tr>
</table>
</div>
What I am trying to do is create a CV where you turn the pages without
reloading the web page. I have successfully done this using the code
above but the links don't work in Internet Explorer until I have gone
through all the pages. Netscape and Opera Works Fine!
The above consists of two pages for convience but my final site will
be approx 6 to 7 pages long.
Can anybody help get the links working on loading up 1st time without
having to go through all the pages or is there a bug with IE?
Many Thanks
Dafydd
<script>
function details()
{
document.getEle mentById('detai ls').style.visi bility='visible ';
document.getEle mentById('capab ilities').style .visibility='hi dden';
}
function capabilities()
{
document.getEle mentById('detai ls').style.visi bility='hidden' ;
document.getEle mentById('capab ilities').style .visibility='vi sible';
}
</script>
With the following HTML code..
<table id="Menu" border="1" width="100%">
<tr>
<td><a href="#" onclick="detail s()">Details</a></td>
<td><a href="#" onclick="capabi lities()">Capab ilities</a></td>
</tr>
</table>
<div id="details" style="position :absolute; visibility:visi ble;">
<table border="0"><cap tion>DETAILS</caption>
<tr><td>Name: </td><td>Enter name</td></tr>
<tr><td>Email :</td><td><a
href="mailto:an yname@anydomain .com">EmailName </a></td></tr>
<tr><td>D.O.B :</td><td>Date of Birth</td></tr>
</table>
</div>
<div id="capabilitie s" style="position :absolute; visibility:hidd en;">
<table border ="0"><caption>C APABILITIES</caption>
<tr><td>Java Script</td><tr>
<tr><td>Java Script</td><tr>
<tr><td>Langaug es</td><tr>
</table>
</div>
What I am trying to do is create a CV where you turn the pages without
reloading the web page. I have successfully done this using the code
above but the links don't work in Internet Explorer until I have gone
through all the pages. Netscape and Opera Works Fine!
The above consists of two pages for convience but my final site will
be approx 6 to 7 pages long.
Can anybody help get the links working on loading up 1st time without
having to go through all the pages or is there a bug with IE?
Many Thanks
Dafydd
Comment