PDA

View Full Version : question about java


davehaz
12-29-2005, 08:59 PM
I think I am working in Java, I may be wrong so let me know if I need to post this elsewhere.

I have a page I am working on, the completed page is here
http://www.buymydfwhome.com/proptemp3.html
the code for the page is here

<?
session_start();
require_once('connectbuymydfwhome.php');
$sql = "SELECT * FROM listings WHERE address = '3313' && street Like 'Provine'";
$result=mysql_query($sql);
$rows = mysql_num_rows($result);
if($rows != '1'){die("There was a problem retrieving the data.");}
$data = mysql_fetch_assoc($result);
extract($data,extr_overwrite);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" />

<head>
<style type="text/css">
.background {background-image: url(images/aRedGloss.jpg); height: 600px; width: 724px; }
td.top {padding:25px 120px ; vertical-align:top; font-family:Tahoma, Times New Roman, System; font-size:36px;}
.center { padding-top: 114px; padding-left: 130px; vertical-align:top;}
.sidebar {vertical-align:top; font-family:Tahoma, Times New Roman, System; font-size:18px; }
hr {color:#CCCCCC; }
.bottom {font-family:Tahoma, "Times New Roman", System; font-size:24px; color:#CCCCCC; text-align:center;}
br.price { vertical-align:bottom;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><? echo $address." ".$street." Virtual Tour";?> </title>
</head>

<body>
<table class="background" align="center" >
<tr><td class="center">
<applet code=ptviewer.class name=viewer width=405 height=275>
<param name=file />
<param name=wait value="http://www.buymydfwhome.com/vtours/controlimages/wait.gif" />
<param name=preload value="<? echo $shot1; ?>,<? echo $shot2; ?>,<? echo $shot3; ?>,<? echo $shot3; ?>,<? echo $shot4; ?>,<? echo $shot5; ?>,<? echo $shot6; ?>,<? echo $shot7; ?>,<? echo $shot8; ?>" />
<param name=view_height value="307" />
</applet><br /><applet code="menu0360.class" height="28" width="406" />
<param name="attachwith" value="viewer" />
<param name="menubackground" value="http://www.buymydfwhome.com/images/redcontrol_bkgd.jpg" />
<param name="menufont" value="Serif" />
<param name="menufontstyle" value="3" />
<param name="menufontsize" value="14" />
<param name="menufgcolor" value="0,0,128" />
<param name="menubgcolor" value="255,255,255" />
<param name="viewerinit" value="newPano({file=<? echo $shot1; ?>}{pan=0}{fov=95});startAutoPan(.3,0,1)" />
<param name="displaytextarea" value="no" />
<param name="defaulttext" value="<? echo $room1; ?>" />
<param name="textarearows" value="4" />
<param name="textareacolumns" value="46" />
<param name="textareascroll" value="3" />
<param name="menuitem0" value="<? echo $menuitem1; ?>|newPano({file=<? echo $shot1; ?>} {pan=0} {fov=95});startAutoPan(.3,0,1)" />
<param name="menuitem1" value="<? echo $menuitem2; ?>|newPano({file=<? echo $shot2; ?>} {pan=0} {fov=95});startAutoPan(.3,0,1)" />
<param name="menuitem2" value="<? echo $menuitem3; ?>|newPano({file=<? echo $shot3; ?>} {pan=0} {fov=95});startAutoPan(.3,0,1)" />
<param name="menuitem3" value="<? echo $menuitem4; ?>|newPano({file=<? echo $shot4; ?>} {pan=0} {fov=95});startAutoPan(.3,0,1)" />
<param name="menuitem4" value="<? echo $menuitem5; ?>|newPano({file=<? echo $shot5; ?>} {pan=0} {fov=95});startAutoPan(.3,0,1)" />
<param name="menuitem5" value="<? echo $menuitem6; ?>|newPano({file=<? echo $shot6; ?>} {pan=0} {fov=95});startAutoPan(.3,0,1)" />
<param name="menuitem6" value="<? echo $menuitem7; ?>|newPano({file=<? echo $shot7; ?>} {pan=0} {fov=95});startAutoPan(.3,0,1)" />
<param name="menuitem7" value="<? echo $menuitem8; ?>|newPano({file=<? echo $shot8; ?>} {pan=0} {fov=95});startAutoPan(.3,0,1)" />
</applet><table><tr><td class="bottom"><br /><br /><br /><? echo $address." ".$street." ".$city.", ".$st." ".$zip;?></td></tr><tr><td class="bottom"><? echo "<br />$".$price.".00"; ?></td></tr></table><td class="sidebar"><? echo "Squarefeet-".$sqft."<hr />Bedrooms-".$bedrooms."<hr />Bathrooms-".$bathrooms."<hr />Living Areas-".$livareas."<hr />Dining Areas-".$dinarea."<hr />Pool-".$pool."<hr />Garages-".$garages."<hr />Fireplace-".$fplace."<hr />Year Built-".$yrblt."<hr />HOA-".$hoa."<hr />SCHOOLS<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Elem-".$elem."<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Middle-".$middle."<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;High-".$high;?></td>
</td></tr>

</table>
</body>

the question and problem I am having is this. I want to be able to have the RE Agents name and phone number go across the top of the background image. I am trying to do this page dynamically so I don't have a bunch of pages hanging around. When I try and do it, I screw up my tour, is there a way to do this? If so could you please let me know.

thanks a million.

nikkiH
12-29-2005, 09:57 PM
Um, nope, that'd be php. Not java.

davehaz
12-29-2005, 10:05 PM
yeah, I know there is some php thrown in there, that is how I am pulling the data to make it dynamic. However the <param > stuff is java right? it certainly isn't any php that I have used before. I know very little about java, enough to make this work like it is for now, does java have a way to write over an image? is really what I should be asking I think.

thanks.

punx
12-30-2005, 04:12 PM
<param > stuff is java right?

No... HTML.

suryad
12-30-2005, 10:34 PM
How can you not know what you are working on?!! :confused:

nikkiH
12-31-2005, 05:13 PM
And you can't mix server-side languages, such as php and jsp, together without serious web server mucking-around-with, anyway.

Remember, java != javascript.
If this were server-side java, such as servlets or JSP, it would not have php in it as well. Even if it could be done, it just isn't.

<param> is often used for applets, which are made with java and run on the client. Perhaps that is what you meant? I see the applet tag...
The java isn't embedded in the source of the page though (as you would see, for example, in servlets if you opened them for editing). It's made separately and "compiled"/jarred into a jar for applets...

And if your question is about the behavior of the applet, the code would be java, and it would need edited. You can't just pass new params unless the applet was made to change behavior based on that. If you didn't author the applet, contact the person who did for the source code to modify.