dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: modify script

  1. #1
    Join Date
    Aug 2013
    Posts
    1

    modify script

    Hy,

    an original script from google: this script is not functioning in the IE9:

    <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
    <script type="text/javascript">
    <ganoembed imageurl="https://lh5.googleusercontent.com/-kr97Eucg6sM/UKGEuvo_eBI/AAAAAAAAi0s/adq8uqyhm_k/photo.jpg"
    fullsize="4096,2048"
    croppedsize="4096,1380"
    offset="0,480"
    displaysize="600,400" />
    </script>
    <script>
    gapi.panoembed.go();
    </script>

    i found a modified one is functioning in IE9

    <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
    <div id="photoSphere"></div>
    <script type="text/javascript">
    var photoSphere = document.getElementById('photoSphere');
    photoSphere.innerHTML = "<ganoembed imageurl=\'https://lh5.googleusercontent.com/-kr97Eucg6sM/UKGEuvo_eBI/AAAAAAAAi0s/adq8uqyhm_k/photo.jpg\' fullsize=\'4096,2048\' croppedsize=\'4096,1380\' offset=\'0,480\' displaysize=\'800,600\' />";
    gapi.panoembed.go();
    </script>

    can someone explain me why?

  2. #2
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,670
    1 plz read my signature
    2 the first 'script' (the content between the second script tags pair) is not a script at all

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles