
abemaca
Members-
Posts
33 -
Joined
-
Last visited
Never
Everything posted by abemaca
-
ive tried adding the 'onclick="hideLayer(thisone)"' to the link that opens the other options but it just stops the showlayer working
-
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
-
my bad sunfighter , thought this was a help forum . ill try elsewhere.
-
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.
-
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.
-
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.
-
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
-
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.
-
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.
-
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) ???
-
IS THIS A HARD SUBJECT OR IS THIS FORUM GOING DOWN HILL RAPIDLY ??? no offense meant
-
anyone ??? :'(
-
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>
-
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.
-
and what would be the relevent board ???
-
hi again guys n gals. Ive just pre-built a website that works fine. ive just moved all files to another server and now when i try to login it does nothing , also if i try to signup it gives this error ................. Warning: gethostbyaddr() [function.gethostbyaddr]: Address is not a valid IPv4 or IPv6 address in /home/content/70/6589670/html/gaming/signup.php on line 87 i have NOT edited the code in anyway so m guessing its a server issue ... or could i be wrong ??? any help welcome , thanks for reading
-
so it is .... thanks alot for your time and help fenway , it really is appreciated alot topic solved !!!
-
ok i copied this in and NO errors , yippie this is how i have it now ..... <? $getfriends = mysql_query("SELECT e.event,e.time,e.img,e.vid,e.status,e.added, c.contact FROM $tab[contacts] AS c INNER JOIN $tab[events] AS e ON ( e.user = c.contact ) WHERE c.user='$id' ORDER BY e.time;"); while ($friends = mysql_fetch_array($getfriends)) { so how do i show results ??? before i would use <?=$friends[0]?> ...... but this dont work ??? thanks in advance for this help. great site
-
i posted it elsewhere and it was staff that moved it here. i didnt know about this , hence me posting it on a help site , to get some help !!! someone asked me to paste what i used already , so i did. i was then given another way to query , so i replaced mine for theres but it gave back error hence the followup questions.
-
i did before , this is what im using now ...... <? $getfriends = mysql_query("SELECT contact FROM $tab[contacts] WHERE user='$id';"); while ($friends = mysql_fetch_array($getfriends)) { $getevents = mysql_query("SELECT event,time,img,vid,status,added FROM $tab[events] WHERE user='$friends[0]' ORDER BY time;"); while ($event = mysql_fetch_array($getevents)) {?>
-
well it replaced it with that one only to get an error
-
do i keep like this ...... FROM `events_table` `e`, `contacts_table` `c` ..... or use my table names like this ...... FROM `$tab[events]` `e`, `$tab[contacts]` `c` .... ????
-
thanks XYPH , all you help has been very usefull , im off to work now but ill test the code asap and post results here. thanks again for tacking time out to help , its appreciated alot.
-
<? $getfriends = mysql_query("SELECT contact FROM $tab[contacts] WHERE user='$id';"); while ($friends = mysql_fetch_array($getfriends)) { $getevents = mysql_query("SELECT event,time,img,vid,status,added FROM $tab[events] WHERE user='$friends[0]' ORDER BY time;"); while ($event = mysql_fetch_array($getevents)) {