Hi Klaus,
Thanks for the link. However i wasn't enough clear in my post upon. Sorry.
For example, if i want to use the same style for the three possible configuration (PC, iphone, android), is my code below correct?
|
Source code
|
1
2
3
4
5
6
7
8
9
10
|
<plugin name="A"
url="myplugin.swf"
style ="B"
......./>
<style name="B"
alturl="iphone.png" <!---for iphone, android can use the swf---->
altonloaded="if(isphone, set (scale,2)); if(isandroid, set(scale,2.3));"
/>
|
Now, if i want to use a third url for android in .swf, is that possible.? Or to use the same alturl than iphone instead the main .swf, can that be done ?
An other solution could be to lead the request straight from the html to three differents xml .? Thing is when i do a xml dedicated to iphone, it loads quicly. Now, if i load the big main xml and use the "alt" variables, it seems to be longer than the other.
VN gave me a code example here
VN html code but i don't have the same syntax than him, in my html.
Is this one correct ? Because it doesn't work, my iPod load the main xml.
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<html>
<head>
<title>krpano.com - Salle-une</title>
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<style>
.........
</style>
</head>
<body>
<script src="tour.js"></script>
<div id="pano" style="width:100%; height:100%;">
<noscript><table style="width:100%;height:100%;"><tr style="valign:middle;"><td><div style="text-align:center;">ERROR:<br/><br/>Javascript not activated<br/><br/></div></td></tr></table></noscript>
<script>
embedpano({swf:"tour.swf", xml:"tour.xml", target:"pano"});
<!----Below, what i've added---->
//viewer.useHTML5("whenpossible");
if( viewer.isDevice("iPhone|iPod|iPad") )
viewer.addVariable("xml", "iphonetour.xml");
else
viewer.addVariable("xml", "androidtour.xml");
viewer.embed();
</script>
</div>
</body>
</html>
|
Thanks very much.

Steph