You are not logged in.

1

Sunday, February 12th 2012, 11:48pm

How to open a new browser window onclick()?

***SOLVED***

This is probably a very basic and stupid question.

I have an image that I want to open another window(tab) when clicking on it, both in a web browser and iPad/iPhone, but I don't know the code to put in the in-between the quotations. It can't be something as simple as onclick="http://www.google.com"
Can anyone spare a bone for this coding dunce?

Source code

1
2
3
4
5
6
7
	<plugin name="tourlogo"
	        url="tourlogo.png"
	        align="bottomleft"
	        onloaded="set(alpha,0); tween(alpha,1.0);"
	        onclick=""
	        keep="true"
	        />

This post has been edited 1 times, last edit by "Tebasaki" (Feb 13th 2012, 1:04am)


Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Monday, February 13th 2012, 12:28am

Check here, specifically click examples.
http://krpano.com/docu/actions/#openurl

onclick="openurl('http://krpano.com',_self);"
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

3

Monday, February 13th 2012, 1:04am

Thanks! It works great on my Droid and an iOS device. What stopped me before was clicking on it through the swf popped up my Flash Player security. I don't think it's turned on, so I've got to change my browser settings to allow this.

I would use the krpano site more, but the navigation is torture to me! (and then I find it and it all love.

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

4

Monday, February 13th 2012, 2:19am

And thats only for your local device. Not needed when uploaded to your web server.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour