Hi all !!
I was trying to add a Addthis social sharing dock on my tours, and the solutions I've found wasn't satisfactory at all.
I got it to work with the use of viewer.addParam set to transparent to get a <div> over my pano, but it's kind of slowing the tour
so I'd like to use the possibilities of linking the html code with XML.
Here's the deal :
<!-- my HTML page -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr-fr" lang="fr-fr">
<script type="text/javascript" src="tour.js"></script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4ede519f0d89f3ad"></script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Eboovisite Démo Tour</title>
<style>
body { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000; background-color: #000000; margin: 0; padding: 0; text-align: center; }
* html, * html body { overflow: hidden; }
html, body, #pano { width:100%; height:99.9%; z-index:1;}
a { color: #AAAAAA; text-decoration: underline; }
a:hover { color: #FFFFFF; text-decoration: underline; }
#align_centre { width: 20%; float: left; margin: 20% 40% 0 40%; background-color: #FFFFFF; border: 2px solid #FF0000; }
</style>
</head>
<body>
<!-- AddThis Buttons START-->
<div class="addthis_toolbox addthis_default_style">
<a class="addthis_button_google_plusone"></a>
<a class="addthis_button_facebook"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_email"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<!-- AddThis Buttons END -->
<!-- The tour itself-->
<script>
var viewer = createPanoViewer({swf:"tour.swf",target:"pano"});
viewer.addVariable("xml", "<?php echo $mypath; ?>");
viewer.embed();
</script>
<div id="pano">
<noscript>
<div id="align_centre"> <br/>
<b>Attention:</b> <br/>
<br/>
Javascript is not activated. <br/>
<br/>
Please activate it to see the virtual tour <br/>
<br/>
</div> <!-- end of align_centre -->
</noscript>
</div>
<!-- end of krpanoDIV -->
</html>
Display More
What I'd like to do is link my AddThis Buttons in the html with image plugins in krpano like:
<plugin name="facebook_button" url="img/facebook.png" crop="0|0|32[32" ondowncrop="0|32|32|32" onclick="Here I want to link with the concerned href in the html" />
Can someone give a tip cause I went trough the documentation and forum but very few information about all this !
That thing could be great cause no flash needed neither than overlay a div on the tour. Means it'll work perfectly on all devices
Thanks in advance I'll continue searching for a solution and let you know if I get one ^^
Regards.