Jump to content

abemaca

Members
  • Posts

    33
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

abemaca's Achievements

Member

Member (2/5)

0

Reputation

  1. ive tried adding the 'onclick="hideLayer(thisone)"' to the link that opens the other options but it just stops the showlayer working
  2. dude i pasted this code (that you gave me) as it was on the other page , i have edited it and my version is different just this way was fastest and showed the least details making solving the issue easier. i didnt mean to offend you as i obviously did mate and for that i do apologies. untill 2weeks ago i didnt know nothing about java , i can do html,php,MySQL and untill now thats all ive used. now im toying with new stuff and just wanted a simple answer , sorry for not knowing what you guys know but trust me , i AM trying
  3. my bad sunfighter , thought this was a help forum . ill try elsewhere.
  4. hi all , heres my code ..... <script type="text/javascript"> function showLayer(name) { name.style.display = "block"; } function hideLayer(name) { name.style.display = "none"; } </script> Example click <span onclick="showLayer(thisone)" style="cursor:hand"><b>here</b></span><br> <div id="thisone" style="position: top:100; left:10; absolute;display:none;"> Some text or other stuff <br> <a href="#null" style="cursor:hand" style="text-decoration:none;" onclick="hideLayer(thisone)">[ hide ] </a> </div> <p> Example click <span onclick="showLayer(sone)" style="cursor:hand"><b>here</b></span><br> <div id="sone" style="position: absolute; display:none;">Some text or other stuff <br><a href="#null" style="cursor:hand" style="text-decoration:none;" onclick="hideLayer(sone)">[ hide ]</a> </div> <p> How can i make auto hide and open section by clicking another hidden ??? IE: i have this script above running 4 times on the page , menu1 - menu2 - menu3 - menu4 if i click menu1 it shows menu1 text , then if i click menu2 it will hide menu1 and show menu2. at the moment the script will leave any open menus showing. Thanks in advance for any help.
  5. thanks alot mate you have been a big help. i was adding it to the DIV section , not in the script thanks again for your time.
  6. thanks for the reply .......... but if i add display then it doesn't work could you write the code as you mean please , sorry to be a pain.
  7. first ide like to say sorry if i posted this in the wrong place. <SCRIPT language="JavaScript"> <!-- function showLayer(name) { name.style.visibility = "visible"; } function hideLayer(name) { name.style.visibility = "hidden"; } // --> </SCRIPT> Example click <span onclick="showLayer(thisone)" style="cursor:hand"><b>here</b></span><br> <DIV id="thisone" style="position: top:100; left:10; absolute; visibility:hidden">Some text or other stuff <br><a href="#null" style="cursor:hand" style="text-decoration:none;" onclick="hideLayer(thisone)">[ hide ]</a> </DIV> <p> Example click <span onclick="showLayer(1thisone)" style="cursor:hand"><b>here</b></span><br> <DIV id="1thisone" style="position: absolute; visibility:hidden">Some text or other stuff <br><a href="#null" style="cursor:hand" style="text-decoration:none;" onclick="hideLayer(1thisone)">[ hide ]</a> </DIV> <p> this is my code that works fine. my issue is i want to click it and the hidden text then pushes the text below already on show down the page , if you run the code above youll see the 1st hidden message opens over the top of the next line down where as i want it to push the text below it. hope i make sense lol
  8. hi guys , i know with link youll use the name tag to load a location on the page but i need to know how to use it in php. i have a main page with details at the top of page, half way down i have comments and then the user can add comments to them. currently if you click post a comment its ok but i want to load that comment at the top (scrolled down to location) once you click submit to post your comment as it loads the same page again. this is the views as pages loads with the comment box at bottom. this is how i want the same page to load , half where down where the comment is placed. i want it to work the same as a forum , post your message then you see your message at top of page of that thread all thought the message is actually like the 12th post in the board.
  9. hmmmm ........... the page it self shows details at top of page , then half way down the user can comment , but when they submit there comment it loads the same page but from the top , ide like it to show there comments as soon as they post it (which is half way down that page) ...... this is the page ... notice the comments section is under the main part ..... when the enter there comment i want the page to load where the comments are like this ............ NOT like the 1st pic showing the top half also.
  10. fair enough , so are you saying its impossible to submit a form and to load the same page (after submitting) in a specific location (like a link would) ???
  11. IS THIS A HARD SUBJECT OR IS THIS FORUM GOING DOWN HILL RAPIDLY ??? no offense meant
  12. main page code is here blah blah <a name="cm"></a> this section i want to show .................................................................................... <form method="post" action="mypage.php?page=myview#cm"> <input name="test" type="text" id="test" size="80" value="" /></form>
  13. hi all. my issue is that im using php pages for my code and i cant get an anchor to work. im trying to get it to load the page half way down directly from a submit button. the section i want to be seen ive called CM so above that section i have <A NAME="CM"></A> and for my submit button i have added ???.php#CM to the URL but it loads like normal showing top of page. any help welcome.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.