Keyarn
Lordeagle Ok but i use the browser to edit my blog twig and there wount be any problem but as far as that block twig is consine it will not work maybe i should try with another blowser b4 contacting you back
Keyarn
Keyarn Sir the xame problem occur or does it mean that phone cannot edit forum block twig b/c am using nokia E5 b4 but it cant do it but i use Tecno L7 to edit it 2day but dexame thing happen and am using dexame E5 to edit my Blog twig and it works well the way i want xo what could be de problem now!
Lordeagle
Keyarn That my former twig twig that made you create this thread was rewritten using Nokia E63 which is no way better than nokia E5. When you're ready to learn u let me know.
Keyarn
Keyarn Hmmm how can you ask rat if he want to eat fish am 24hr reaady and 100% prepare to learn my boss
Keyarn
Lordeagle Lordeagle am still weting 4ur reply
Keyarn
Graham Plz Sir, in this type of script, what kind of click button will i use to display all de tree values at ones
<script>
function first(){
document.getElementById('main').innerHTML='<b>The first page</b>';
}
function second(){
document.getElementById('main').innerHTML='<b>The second page</b>';
}
function third(){
document.getElementById('main').innerHTML='<b>The third page</b>';
}
</script>
Copy code asin when i click on de button den dis tree value will apear
The First Page,
The 2nd Page,
The 3rd page
Copy code all in one button. Plz sir help me
Graham
Keyarn http://baretest.xtgem.com/button <script>
function first(){
document.getElementById('main').innerHTML='<b>The first page</b>';
document.getElementById('button').setAttribute('onclick','second()');
document.getElementById('button').innerHTML='second';
}
function second(){
document.getElementById('main').innerHTML='<b>The second page</b>';
document.getElementById('button').setAttribute('onclick','third()');
document.getElementById('button').innerHTML='third';
}
function third(){
document.getElementById('main').innerHTML='<b>The third page</b>';
document.getElementById('button').setAttribute('onclick','first()');
document.getElementById('button').innerHTML='first';
}
</script>
<div id="main">default content on first load</div>
<button id="button" onclick="first()">first</button>
Copy code The content will be loaded and the button will change when clicked
Keyarn
Graham Thanks sir!! Plz i also av this
<script>
function first(){
document.getElementById('main1').innerHTML='<b>The first page</b>';
document.getElementById('main2').innerHTML='<b>The second page</b>';
document.getElementById('main3').innerHTML='<b>The third page</b>';
}
</script>
<span class="zxfourborder"><div class="top_nav"><button onclick="first()"> menu </button></span></div><br /><span class="full"><p id="main1" align="left"></span></p><span class="full"><p id="main2" align="left"></span></p><span class="full"><p id="main3" align="left"></span></p><p id="main4" align="left"></p>
Copy code now i need a click button xo that when ever someone click on it all de tree values will disapear asin i want to hide them back with a click button
Graham
Keyarn For a start <div> should not be in <span> div is a block element span is inline and your nesting is wrong
<p> should not be in <span> either and you have that nested wrong as well
wrap the menu code in a outer <div>
Separate script or add the function to the other
<script>
function show_hide(elem) {
obj = document.getElementById(elem);
if( obj.style.display == "none" ) {
obj.style.display = "block";
}
else {
obj.style.display = "none";
}}
</script>
<button onclick="show_hide('menu_outer')"> menu </button>
<div id="menu_outer" style="display:none>
your menu code goes here
</div>
Copy code Click the button to show the menu code
demo on
http://baretest.xtgem.com/button
remember a lot of mobile browsers cannot handle "dynamic" code
this nor the other will work on many versions of opera mini or ucweb