Giving back to the community.
Nifty slideshow using attachements.
Version: 5.0.5
URL:
|
sparkalina
Forum Regular Usergroup: Customer Joined: Nov 25, 2003 Total Topics: 69 Total Posts: 198 |
Posted 09/17/08 - 8:12 PM:
I just wanted to give back to the WSN community and to Paul. I spent a couple hours making the attachments load as a javascript based user controllable slide show. This only works if your attachments are images. 1) Upload the attached javascript file to your wsnclassifieds directory. You can edit the amount of time each photo(attachment) is displayed. Currently it's set at 5 seconds. 2) Place this code in the head of your wrapper. <SCRIPT type="text/javascript" language="Javascript" src="slide.js"></SCRIPT> (replace current path to slide.js with your url path) 3)Place the following code (currently styled as simple table) where you want your slide show to appear.
The second instance of the Link attachment code is to show the first image attachment uploaded upon initial page viewing. If you do not have this, your page will be blank until user clicks one of the slide show buttons. 4) Moving the slide show select box and buttons is a dicey proposition. I've tried moving it around with nasty results, but feel free to post amends to this slideshow. Edited by sparkalina on 09/17/08 - 8:17 PM |
|
sparkalina
Forum Regular Usergroup: Customer Joined: Nov 25, 2003 Total Topics: 69 Total Posts: 198 |
Posted 09/17/08 - 9:06 PM:
Ive tried deleting the provided code that comes automatically comes on the details.tpl but when I do that, the "begin 1 attachment" portion of my code above crashes and gives me a broken image. Why is that? Any ideas? |
|
Paul
developer Usergroup: Administrator Joined: Dec 20, 2001 Location: Diamond Springs, California Total Topics: 65 Total Posts: 7614 |
Posted 09/20/08 - 1:29 PM:
Cleaned up the HTML, downsized the pictures and added as a switch. I don't believe there's support for multiple attachment areas on the same page, but a toplist is better here anyway so that non-image attachments can be excluded. |
Sorry, you don't have permission to post. Log in, or register if you haven't yet.

Print