Results 1 to 4 of 4
  1. #1
    Loudy is offline Member
    Join Date
    Jul 2011
    Posts
    3
    Rep Power
    0

    Default Incorporating JAVA code for 360 panorama in web page HTML

    I was given the following JAVA code that permits me to execute a 360 degree panorama on FireFox. I

    <html>
    <head><title>James Panorama</title></head>
    <body bgcolor="#666666">
    <div align="center">
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <applet code="ptviewer.class" archive="ptviewer.jar" width=700 height=300>
    <param name=file value="backyardpano.jpg">
    <param name=cursor value="MOVE">
    <param name=pan value=60>
    <param name=showToolbar value="false">
    <param name=imgLoadFeedback value="true">
    <param name=auto value=-0.1>
    <param name="autoTime" value=220>
    n'Click me'">
    </applet>
    </div>
    </body>
    </html>


    Now I want to incorporate the 360 degree panorama into the html that was produced via FrontPage (the panorama is to appear on the left of the floor plan. Here is the code that was generated by my work with FrontPage.

    <html>

    <head>
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>James Project 1</title>
    </head>

    <body background="../Project%201/images/Project%20Background%20small%20sample.jpg">

    <table Align=center border="3" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="purple" width="1089" id="AutoNumber1">



    <tr>
    <td>
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="purple" width="100%" id="AutoNumber2">
    <tr>
    <td width="33%" style="border 4px solid purple; " valign=top>
    <table >
    <tr >
    <td>
    <font color=white>
    This is line 1
    </font>
    </td>
    </tr>
    <tr>
    <td>
    <font color=white>
    This is line 2
    </font>
    </td>
    </tr>
    <tr>
    <td>
    <font color=white>
    This is line 3
    </font>
    </td>
    </tr>
    </table>
    </td>



    <td width="27%" align=center valign=middle >
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="275" id="AutoNumber3">
    <tr> <td>&nbsp; </td> </tr>
    <tr> <td>&nbsp; </td> </tr>
    <tr>
    <td width="300" align=center valign=middle>
    <img border="0" src="../Project%201/images/Gold%20Call%20Madalian.jpg" width="273" height="131"></td>
    </tr>
    <tr>
    <td width="273">&nbsp;<p>&nbsp;</td>
    </tr>
    </table>
    </td>



    <td width="40%" valign=top>
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="275" id="AutoNumber3">
    <tr>
    <td>
    <font color=white>
    This is line 4
    </font>
    </td>
    </tr>
    <td>
    <font color=white>
    This is line 5
    </font>
    </td>
    </table>
    </tr>
    </table>
    </td>
    </tr>



    <tr>
    <td>
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber4" height="529">
    <tr>
    <td width="100%" height="529">
    <p align="center">
    <img border="0" src="../Project%201/images/Pano%20frame%20together%20jpg.jpg" width="833" height="432"></td>
    <img src="../Project%201/Pano%201Templet%201Size" width="743" height="504'></td>
    <img src="../Project%201floor%201plan%201templet%201size" width="259" height="506"></td>
    </tr>
    </table>
    </td>
    </tr>

    <tr>
    <td colspan=3 align=center>
    <font color=white> <p>applet begin&nbsp;</p> </font >
    <applet code="ptviewer.class" archive="ptviewer.jar" width=700 height=300>
    <param name=file value="kivaentrypano.jpg">
    <param name=cursor value="MOVE">
    <param name=pan value=60>
    <param name=showToolbar value="false">
    <param name=imgLoadFeedback value="true">
    <param name=auto value=-0.1>
    <param name="autoTime" value=220>

    </applet>
    <font color=white> <p>applet end&nbsp;</p> </font >
    </td>
    </tr>
    </table>


    </body>
    </html>




    </body>

    </html>

    Does anybody have any suggestion how to make this incorporation of JAVA into HTML and execute the JAVA via hotspots in the floor plan?

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,518
    Rep Power
    25

    Default

    Sorry, I don't see ANY java code in your post.
    It looks like HTML to me.

    The only bit touching java is the class file: ptviewer.class

  3. #3
    Loudy is offline Member
    Join Date
    Jul 2011
    Posts
    3
    Rep Power
    0

    Default

    Hi Norm thanks for the reply. Sorry. I frankly do not know either code. I was told that the short code allowed me to execute the panorama via FireFox. And, I thought JAVA and that the ptview were associated with each other. I just remembered that I copied the code given me, pasted it into a Dreamweaver project to cause the panorama to play. I can only apologise about my ignorance with code. As I mentioned in my introduction section, I am 74 and getting older and found the need to do something to keep my mind alert. I chose to take the 360 panoramas as my project and am now trying to make some proacticle use of the technology. If this causes some annoance to you I am sorry. So..... should I be pursuing my project through an HTML forum rather than a JAVA forum?

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    I think that whatever you try to do, you should learn some of the basics first via tutorials or books before tackling a project. Right now, I'm not sure that you know enough to even be able to ask a question that makes sense. This is not meant as criticism, for we all must start somewhere, but gain the basics first. You won't regret it.

Similar Threads

  1. read html code of web page
    By asheeshiit in forum Advanced Java
    Replies: 9
    Last Post: 01-07-2014, 09:31 PM
  2. Error while parsing html page in java on linux
    By rdhaware in forum Advanced Java
    Replies: 1
    Last Post: 02-20-2009, 02:20 AM
  3. [SOLVED] retrieve the html code of any web page
    By Omarero in forum New To Java
    Replies: 3
    Last Post: 02-18-2009, 10:20 PM
  4. Include Java file in HTML Page
    By kathyc in forum New To Java
    Replies: 2
    Last Post: 03-07-2008, 03:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •