PDA

View Full Version : Apartment Listings using Open Realty



goadnet
11-02-2003, 05:02 PM
http://www.scga.com/listings/

check it out !

Anonymous
11-02-2003, 05:20 PM
http://www.scga.com/listings/

check it out !

Can you share how you did the

Previous Photo .................... Next Photo

on your listing paview page?



Great site by the way...
Great Job....

gwmbox
11-03-2003, 12:04 AM
Looks good any chnace you can share your listing_browse.php file, the layout is far better - I'm not looking to copy, I have just been trying to do something similar for ages but with no luck :( - I hate the cell format on the default listing_browse.php

Greg

Torgen
11-03-2003, 10:00 PM
That is very very nice. I'm with the others: care to share your secrets? :)

goadnet
11-13-2003, 07:12 PM
I am happy to share; sorry to be slow responding. However forum won't accept my attachments no matter what I try. If anyone (GREG) needs a file you could PM me and include a direct email address; I'll send it on.

Anonymous
11-13-2003, 08:36 PM
Insert this section into the "body" of the page


<script language="JavaScript">var numImages = 4;

var images = new Array&#40;numImages&#41;;

var currentImage = 0;

&#123;

for &#40;i=0; i < numImages; i++&#41; &#123;images&#91;i&#93; = new Image;&#125;images&#91;0&#93; = "http&#58;//www.scga.com/listings/images/listing_photos/19_val mar front ii.jpg";images&#91;1&#93; = "http&#58;//www.scga.com/listings/images/listing_photos/19_val mar front.jpg";images&#91;2&#93; = "http&#58;//www.scga.com/listings/images/listing_photos/19_val mar view city.jpg";images&#91;3&#93; = "http&#58;//www.scga.com/listings/images/listing_photos/19_val mar view ii.jpg";
&#125;



function next&#40;&#41;

&#123; currentImage = &#40;currentImage + 1&#41; % numImages; document.picture.src = images&#91;currentImage&#93;;&#125;



function prev&#40;&#41; &#123; currentImage = &#40;currentImage + &#40;numImages - 1&#41;&#41; % numImages; document.picture.src = images&#91;currentImage&#93;;&#125;



</SCRIPT>


Then wherever you want the links put this code (remove it from the table if you need) and change the image address locations to whatever images you are using


<table width="100%" cellpadding="1" cellspacing="0" border="0">

<tr>

<td valign="middle" width="50%" nowrap><font face="Verdana, sans-serif" size="2" color="#FFFFFF">

<a href="javascript&#58;prev&#40;&#41;"><font color="#CC6600">Previous Photo</font></a>

<br></font></td>



<td valign="middle" align="right" width="50%" nowrap><font face="Verdana, sans-serif" size="2">

<a href="javascript&#58;next&#40;&#41;"><font color="#CC6600">Next Photo</a><br></font></td>

</tr>

</table>



Good Work on the Site!

gwmbox
11-14-2003, 07:51 AM
I am happy to share; sorry to be slow responding. However forum won't accept my attachments no matter what I try. If anyone (GREG) needs a file you could PM me and include a direct email address; I'll send it on.

Thanks goadnet - I have worked out the issue and have posted a link to the answer in the mods forum for all to see - great to see you were willing to share - just love this open source community.

Greg

Anonymous
11-14-2003, 01:49 PM
I'm not goadnet, but wanted to help answer the question , so
I just looked up the code in the html of the browser and posted. He/she never responded. GLad to help anyway :lol:

gwmbox
11-16-2003, 09:12 PM
Spin. I was replying to goadnet - the post before your code post - which is not what I wanted anyway, but its still good your sharing, I answered my own problem and as advised posted the link in the mods forum

Greg