Hi friends,
I have a problem that needs your help
If you see this site: http://www.nosotroscinco.com"][/URL]
you will see the button +info
By clicking there, I show or hide a <div> using the below js function:
**********************************
<script language="javascript">
function toggle() {
var ele = document.getElementById("toggleText");
if(ele.style.display == "block") {
ele.style.display = "none";
}
else {
ele.style.display = "block";
window.scrollTo(100,300)
}
}
</script>
**********************************
The problem I have here, is that each time the "next" or "prev" buttons are pressed (< or >) reload the page, and I want to reload the URL but with last status for the ele.style.display.
I don´t know if I am clear enough, but for instance, I open the website home, then click in +info, it shows the hidden div, then click in next button ">", I want that +info is opened if previously it was opened.
I really appreciate your help on this, I am driving crazy and cant solve this.
Thanks & Best regards
I have a problem that needs your help
If you see this site: http://www.nosotroscinco.com"][/URL]
you will see the button +info
By clicking there, I show or hide a <div> using the below js function:
**********************************
<script language="javascript">
function toggle() {
var ele = document.getElementById("toggleText");
if(ele.style.display == "block") {
ele.style.display = "none";
}
else {
ele.style.display = "block";
window.scrollTo(100,300)
}
}
</script>
**********************************
The problem I have here, is that each time the "next" or "prev" buttons are pressed (< or >) reload the page, and I want to reload the URL but with last status for the ele.style.display.
I don´t know if I am clear enough, but for instance, I open the website home, then click in +info, it shows the hidden div, then click in next button ">", I want that +info is opened if previously it was opened.
I really appreciate your help on this, I am driving crazy and cant solve this.
Thanks & Best regards