Forums  

Go Back   Forums > Members List

gr.panorama gr.panorama is offline

Member

Visitor Messages

Showing Visitor Messages 1 to 1 of 1
  1. EnochTwig
    04-14-2011 09:00 PM
    EnochTwig
    forum is not letting me post replies...

    I would just take out the 'filepath' line, and add an alert to make sure getParm is working properly:



    <script type="text/javascript">
    var startPano = getParm("startpano");

    var so = new SWFObject("hotel.swf", "pano", "100%", "100%", "9", "#40373a");
    so.addVariable("panoName",startPano);
    so.addVariable("xml_file","hotel.xml");
    so.addParam("allowFullScreen","true");
    so.addParam("allowScriptAccess","sameDomain");
    so.write("flashcontent");
    window.document["pano"].focus();

    function getParm( name )
    {
    name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
    var regexS = "[\\?&]"+name+"=([^&#]*)";
    var regex = new RegExp( regexS );
    var results = regex.exec( window.location.href );

    alert("Param Name: " + name +"\nURL String: " + window.location.href + "\nRegEx Result: " + results);

    if( results == null )
    return "";
    else
    return results[1];
    }
    </script>

About Me

  • About gr.panorama
    Biography
    www.hellaspanorama.eu
    Location
    Greece

Statistics

Total Posts
Visitor Messages
Downloads
  • Downloads: 1
  • Uploads: 0
General Information
  • Last Activity: 04-10-2015 03:47 PM
  • Join Date: 07-04-2010
  • Referrals: 0

All times are GMT. The time now is 01:21 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.