PanoTools mailing list archive

Mailinglist:PanoTools NG
Sender:hans_loepfe
Date/Time:2007-May-10 17:24:59
Subject:Re: supporting multiple WEB-Browsers using one (1) ptviewer.jar

Thread:


PanoTools NG: Re: supporting multiple WEB-Browsers using one (1) ptviewer.jar hans_loepfe 2007-May-10 17:24:59
Hi Bruno, hi whoever is interested

Below is the code that now works fine for MSIE, Firefox and 
presumably all other browser.

To everyone reading this:
Please check with browsers other than Firefox or MSIE and tell me if 
it worked for you or not.
http://www.halo-photographs.com/panoramas/ptv12.html

The solution was that I had to just place the some lines into the 
correct order:

<param name="archive" value="/assets/ptv/ptviewer.jar" />
<param name="code" value="ptviewer" />
<param name="file" value="ptviewer:0" /> 
<param name="pano0" value="file=images/18863-18895_ptv.jpg" /> 

Anyone may feel free to use it. You just have to change some lines 
like where your PTVIEWER files are located, the window size, the 
location and filename of the image and where your icons 
(controlimages) are located.

With this code you do not need to adapt the .htacces file as 
described in the PanotoolsNG Wiki.

<!-- Beginn Content -->
<div id='Content'>
<h2>Description</h2>
<p>

<!--[if !IE]> Firefox and others will use outer object -->
<object type="application/x-java-applet" 
classid="java:ptviewer.class" archive="ptviewer.jar" width="654" 

height="429">
        <param name="codebase" value="/assets/ptv" /> 
        <param name="file" value="ptviewer:0" /> 
		<param name="pano0" value="file=images/18863-
18895_ptv.jpg" /> 
		<param name="wait" 
value="/assets/ptv/controlimages/halo-logo.gif" />
		<param name="frame" 
value="/assets/ptv/controlimages/frame_654x429.gif" />
		<param name="quality" value="3" />
		<param name="auto" value="0.1" />
		<param name="fov" value="80" />
		<param name="fovmax" value="130" />
		<param name="fovmin" value="50" />
		<param name="tilt" value="0" />
		<param name="tiltmin" value="-57" />
		<param name="tiltmax" value="50" />
		<param name="pan" value="0" />
		<param name="panmin" value="-135" />
		<param name="panmax" value="135" />
		<param name="antialias" value="true" />
		<param name="view_height" value="429" />
		<param name="view_width" value="654" />
		<param name="cursor" value="move" />
		<param name="shotspot0" value="x1 y402 a26 b428 
u'ptviewer:ZoomIn()' 

i'/assets/ptv/controlimages/zoom_in_t.gif' q-" />
		<param name="shotspot1" value="x26 y402 a51 b428 
u'ptviewer:ZoomOut()' 

i'/assets/ptv/controlimages/zoom_out_t.gif' q-" />
		<param name="shotspot2" value="x51 y402 a76 b428 
u'ptviewer:startAutoPan(0.1,0,1)' 

i'/assets/ptv/controlimages/refresh_tr.gif' q-" />
  		<param name="archive" value="ptviewer.jar" />
<!--<![endif]-->

<!-- MSIE (Microsoft Internet Explorer) will use inner object -->
    <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" 

codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0-windows-
i586.cab" height="429" width="654">
		<param name="archive" 
value="/assets/ptv/ptviewer.jar" />
		<param name="code" value="ptviewer" />
		<param name="file" value="ptviewer:0" /> 
		<param name="pano0" value="file=images/18863-
18895_ptv.jpg" /> 
		<param name="wait" 
value="/assets/ptv/controlimages/halo-logo.gif" />
		<param name="frame" 
value="/assets/ptv/controlimages/frame_654x429.gif" />
		<param name="quality" value="3" />
		<param name="auto" value="0.1" />
		<param name="fov" value="80" />
		<param name="fovmax" value="130" />
		<param name="fovmin" value="50" />
		<param name="tilt" value="0" />
		<param name="tiltmin" value="-57" />
		<param name="tiltmax" value="50" />
		<param name="pan" value="0" />
		<param name="panmin" value="-135" />
		<param name="panmax" value="135" />
		<param name="antialias" value="true" />
		<param name="view_height" value="429" />
		<param name="view_width" value="654" />
		<param name="cursor" value="move" />
		<param name="shotspot0" value="x1 y402 a26 b428 
u'ptviewer:ZoomIn()' 

i'/assets/ptv/controlimages/zoom_in_t.gif' q-" />
		<param name="shotspot1" value="x26 y402 a51 b428 
u'ptviewer:ZoomOut()' 

i'/assets/ptv/controlimages/zoom_out_t.gif' q-" />
		<param name="shotspot2" value="x51 y402 a76 b428 
u'ptviewer:startAutoPan(0.1,0,1)' 

i'/assets/ptv/controlimages/refresh_tr.gif' q-" />
        
        <strong>Um das Panorama anzuzeigen ben?t dieser Browser 
ein Java Plug-in.<br />This browser does not 

have a Java Plug-in to view this Panorama.<br />
        <a 
href='http://java.sun.com/products/plugin/downloads/index.html'>Hier 
kann das neueste Java Plug-in 

geladen werden. / Get the latest Java Plug-in here.</a></strong>
    </object>
  <!--[if !IE]> close outer object -->
</object>
<!--<![endif]-->
</p>
<p>Maus ins Bild bewegen, links anklicken und Ansicht nach links, 
rechts, oben oder unten zu bewegen.<br />Move 

mouse pointer into the picture, click the left mouse button and move 
the view to the left, right, up or down.</p>
</div>
<!-- End Content -->




-- 
<*> Wiki: http://wiki.panotools.org/

<*> Nabble (web) http://www.nabble.com/PanoToolsNG-f15658.html

<*> NG Member Map http://www.panomaps.com/ng/

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/PanoToolsNG/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/PanoToolsNG/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:#removed# 
    mailto:#removed#

<*> To unsubscribe from this group, send an email to:
    #removed#

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Next thread:

Previous thread:

back to search page