You are not logged in.

1

Tuesday, February 21st 2012, 12:10pm

html for 3 tour:swf(pc),another swf(android),js ?

Hi to all, and thz for the time :)...

My question is:"Is possible whit one html,switching automatically to an swf tour if is pc,to another swf tour if is android mobile,or a js tour if is an apple device?"

I kwow that is possible to have in a html an automatical switch between swf e js tours,i just put in there the swf script and js script and if i have a pc or a device that read flash i have the swf,otherwise if i have a device that cannot read flash(i-phone,ipad..)it read the js...

now...

I have a flash tour whit a graphic style designed for pc screens.
I have two "mobile version tour".The design is the same,but one is for i-phone and another is for android...

I don't know hot to made an html that have an automatical switching between the tree tours :/...

I have thinking about a first switching between one swf(a simple page with a sinple manual request:"Are you using a mobile or a desktop devise?" that linked to the tour that the man chosen..)and the js tour(the tour for the apple devices).....but i want an automatic redirect

someone have a better idea?
thz and sorry for the bad english *pinch*

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Tuesday, February 21st 2012, 4:30pm

http://krpano.com/docu/html/#isDevice

Below is a NON-functioning example "probably" to give you the idea.

Source code

1
2
3
4
5
6
7
8
9
var viewer = createPanoViewer({swf:"tour.swf?v=520", target:"pano"});
var ret = viewer.isDevice(devices);
if( viewer.isDevice("iPhone|iPod|Android") ) {
viewer.addVariable("xml", "mobile.xml");
}
else {
viewer.addVariable("xml", "desktop.xml");
}
viewer.embed(id);
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

3

Wednesday, February 22nd 2012, 12:52pm

I'll try this solution....asd..i have to read well how to to...