Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can't find body tag in any of the files.

    Hi,

    First off I'm not too familiar with php. I bought a script, and had it installed on one of my sites. I need to add a code in the body tag. I figured it would be in the index.php but it's not. The site is www(dot)adultquestion(dot)com. Is it possible one of you guys could look at the source code and tell me what file would contain it.

    Thanks in advance

  • #2
    Regular Coder Arcticwarrio's Avatar
    Join Date
    May 2012
    Location
    UK
    Posts
    727
    Thanks
    20
    Thanked 85 Times in 85 Posts
    you probably have a template.php file or template.html somewhere

  • #3
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,594
    Thanks
    23
    Thanked 646 Times in 645 Posts
    Your main page http://www.adultquestion.com/ is an HTML page not a php page. The body starts at line 64 and goes to line 1504

  • #4
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Arcticwarrio I couldn't find the file you suggested. Also sunfighter, the index page is a php page. My site for some reason looks different on IE, it shows a blue header on top of the menu bar(not on opera or firefox). Also if you guys try answering a question on IE, you'll see the css is a little messed up (works fine on opera & firefox). Any of you guys willing to work out those errors for $100 via paypal (50-50)? (fix the answer page css, make sure the blue header is showing on top of the menu bar for all browsers, and find where the <body> and <header> tags are located for the site so I can paste certain scripts in there.)


    Let me know what you guys think.

    Thanks

  • #5
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    To add a code to the body tag from CSS simply specify:

    Code:
    body {...}
    where the code goes in place of the ...


    To add a code to the body tag from JavaScript simply specify:

    Code:
    document.getElementsById('body')[0].onload = function() {...};
    or substitute whatever event you want for onload.

    There is nothing that ever needs to be directly added to the body tag in the HTML - it all attaches via either CSS or JavaScript.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #6
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Artic and Sun ignore my paypal offer since all I really wanted was access to the body tag. Felgall What about if I want to add something to the header through the css, would the code be something like this ' header {...} ' ? Huger thanks by the way, I'll try adding the code when I get home tonight and let you know if it works.

  • #7
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks FelGall, I got it to work. Do you know why when you try to answer a question on IE, the answer box is pushed down so far?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •