/    Sign up×
Community /Pin to ProfileBookmark

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”>
<g:panoembed 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 = “<g:panoembed 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?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@PadonakAug 27.2013 — 1 plz read my signature

2 the first 'script' (the content between the second script tags pair) is not a script at all
×

Success!

Help @cfrank38 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...