Jump to content

emvy03

Members
  • Posts

    62
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

emvy03's Achievements

Member

Member (2/5)

0

Reputation

  1. I think I have solved it by changing position to fixed. Thanks.
  2. Hi guys, I'm messing about trying to suss how to do a slide down box that appears when the user clicks a link inside a fixed header at the top. The slide function works, I think, but it will slide down and then 'jump' to the left once it has completed the sliding action. Below is the code I am using: <script language="javascript" type="text/javascript"> $(document).ready(function() { $("#open").click(function(){ $("div.hiddenDiv").slideDown("slow"); }); $("#close").click(function(){ $("div.hiddenDiv").slideUp("slow"); }); }); </script> <style type="text/css"> .hiddenDiv{ display:none; height:150px; width:200px; background:yellow; position:relative; top:36px; left:780px; } </style> and the HTML: <div id='headercontainer'> <ul id='header'> <li><a href='#'><img src='images/twitter.png' alt=''></a></li> <li style='float:left;'><input type='text' id='search' value='Search...'></li> <li><a href='#'><img src='images/facebook.png' alt=''></a></li> <li><a id='open' href='#'><img src='images/shopcart.png' alt=''></a></li> </ul> <div class="hiddenDiv"> <!--Content goes in here --> <a id='close' href='#'>Close</a> </div></div><!-- Close Header Container --> Any help would be greatly appreciated and of course I will post any other code if required. Many thanks.
  3. emvy03

    DOCTYPE help

    Hi, Thanks so much for your help. There was a rogue element in there causing havoc which has since been removed. Microsoft IE I have found to be a pain, much prefer to use Chrome. Cheers
  4. emvy03

    DOCTYPE help

    Its a Div tag for the voting system on my site. I'm not too too worried about at the minute, my biggest concern is the site won't display properly across the different browsers. IE now works perfectly, but Firefox and Chrome are now suffering. Its the complete opposite problem I was having a few days ago. I believe the site passed validation so I don't really know what's going on. :'(
  5. emvy03

    DOCTYPE help

    Hi, Thanks for all the help. I think I'm starting to get some where now with the errors. Is there anyway to work around using the 'name' attribute. I need it to enable my javascript to work but validation is telling me that the 'name' attribute is now obsolete. Thanks.
  6. emvy03

    DOCTYPE help

    Changed the DOCTYPE to html transitional and have solved all the major errors using validator but Internet Explorer still showing major flaws .
  7. emvy03

    DOCTYPE help

    Hi, Thanks for the reply. I'm getting the same errors with some of them like <center>...</center>.
  8. emvy03

    DOCTYPE help

    Hi, This is going to seem really school boy and I'll probably get a bit of stick for this but I believe I'm having a problem with the DOCTYPE. The reason being that I'm getting about 40 errors when validating my website and most of them are OMITTAG NO. Admittedly some of my img tags haven't yet been closed but most of the errors are for <div>, <h4> etc where you don't close the tags by />. Please say if you need more elaboration. www.rumourdeal.co.uk is the site so you can see it. Cheers.
  9. Sorry, I placed the 'nl2br' in the wrong place. Thanks for pointing it out. All is good now. Ta.
  10. Thanks. It processes the code to include line breaks but its just not displaying the code to include the breaks. I.e. If I have text like: Roses are red, Violets are blue The page displays: Roses are red, Violets are blue This is the code to display the text ($msg is the php variable for the text): <?php echo '<div style="margin-top:5px; margin-left: 15px;float:left; font-size:12px; font-weight:bold;">' . $date_added . '</div><br><h4>' . $title . '</h4>' . $msg; ?>
  11. Hi, I'm not sure if this should be in PHP or HTML so apologies if it's in the wrong area. I have a form with a text area element but when the text is submitted, tags such as <br> aren't included so the outputted text is never formatted correctly such as there being no paragraphs. Is there a way make sure such tags are included in the output text? Ta.
  12. Hi, Sorry I haven't replied replied in a while. I've managed to find a work around so thank you for all your help.
  13. No, I haven't tried firefox. I think the issue maybe to do with the fact that the button doesn't have a 'name' so the php script is triggered but has nothing to work from. The problem I now have is what to give a 'name'.
  14. function submitvote() { if(document.voteForm.onsubmit && !document.voteForm.onsubmit()) { return; } document.voteForm.submit(); } </script> I'm using the exact same code for an upload form as well and that works with out any problems.
  15. Hi, Sorry, that was a mistake when I copied and pasted the code; the correct code does have 'voteForm instead of 'searchForm', but I am still having the same problem.
×
×
  • 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.