![]() |
|
|
|
|
|||||||
| Javascript / Java Applets Are you a JavaScript guy? Do you need help with JavaScript? This is the place to talk about anything related to Java. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I looked around but I could not find a code for dynamic rotation of text for the website in my hosting. I want to change a part of text from my web page without refreshed that page.
|
|
#2
|
||||
|
||||
|
Edit the web page and put this code between head tag:
HTML Code:
<script type="text/javascript"> function toggleDiv(divid){ if(document.getElementById(divid).style.display == 'none'){ document.getElementById(divid).style.display = 'block'; }else{ document.getElementById(divid).style.display = 'none'; } } </script> HTML Code:
<div id="mydiv" style="display:none">paragraph1</br>paragraph2</div> <a href="javascript:;" onmousedown="toggleDiv('mydiv');">commit change</a> |
![]() |
| Tags |
| code, dynamic, hosting, rotation, text, website |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|