Grow your CSS skills. Land your dream job.

Is this possible?

  • # September 15, 2009 at 6:43 am

    Hi,

    I spent like one week trying to get a 3D map up on my site, only to have me take it down so I could move to wordpress.

    I still want to get it up but I need to figure something out first..

    Using wordpress i can put the code in the HTML part for that particular page..

    however I also need to place this code

    Code:

    This is placed in the header..

    Only problem is that every time I view a page this code calls for the 3D route code every time. So every page I go to it comes up with a error can’t load error..

    Is there a way to make this code only work for that particular page? Maybe a jquery script or something.. thanks

    # September 15, 2009 at 7:43 am

    Sorted..

    In the HEAD, you should have a tag containing the function you need to run:
    <script type="text/javascript" language="javascript">
    function initMap() {
    init();
    P7_ExpMenu();
    }
    </script>

    Now in the BODY tag of the required HTML file, you can add an onload event, such as:
    <body onload="initMap();">

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".