Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Is this possible?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26113
    leehughes
    Member

    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

    #64115
    leehughes
    Member

    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)
  • The forum ‘JavaScript’ is closed to new topics and replies.