johnyp Posted July 12, 2012 Share Posted July 12, 2012 Hello. Can anyone tell me how to show two div's in same page position! I want to use two div's and according to visitors answer to a queston show the one needed. I want them to be on the same page position as this to be the top of the page. Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/265583-two-divs-in-same-position/ Share on other sites More sharing options...
johnyp Posted July 13, 2012 Author Share Posted July 13, 2012 Another thing is that i don't know how to call a javascript function from my php code : <?php foreach($_GET as $var => $value) { $out.= $var . '=' . $value . "&"; } $out = substr_replace($out,"",-1); $out = str_replace("(","[",$out); $out = str_replace(")","]",$out); $out = $out . "&submit1=1&first=1&p=advsearch"; echo $out; here i want to call a javascript that i have included from another file in order to pass $out to window.opener. ?> Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/265583-two-divs-in-same-position/#findComment-1361193 Share on other sites More sharing options...
avibitton Posted July 14, 2012 Share Posted July 14, 2012 Hi first sorry for any spelling mistake English isnt my first language im not sure what u need in the first question : but maybe ur anser is involve with simple jquery ,but if you give the div different ID's, so when user click A fadein ID 1 if user click b so fadein div B , of course in thier css they should be hidden from first, and the position will be in the css also . about second quasion i guess you mean : echo ' <script> .........</script>' ; the echo will excute the script you wrote inside . i hope it helps . Avi ,. Quote Link to comment https://forums.phpfreaks.com/topic/265583-two-divs-in-same-position/#findComment-1361554 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.