Webmastersite.net
Register Log In

Giving back to the community.

Title Giving back to the community.
Description Nifty slideshow using attachements.
Message Text 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.
<form name="Oneslideform" >

<table width="400" border="0" cellpadding="2" cellspacing="0">
  <tr>
    <td width="400" align="center">
<select name="Oneslide" onChange="Onechange();">
<!-- BEGIN LINK ATTACHMENTS -->
<option value="{ATTACHDOWNLOADURL[direct]}">{ATTACHFILETITLE}</option>
<!-- END LINK ATTACHMENTS -->
</select>
<input type=button  onClick="Oneprevious();" value="<<" title="Previous" name="button">
<input type=button  name="Oneslidebutton" onClick="Oneap(this.value);" value="Start" title="AutoPlay">
<input type=button  onClick="Onenext();" value=">>" title="Next" name="button"></td>
  </tr>
 
  <tr>
   <td bgcolor="#000000" align="center">
<!-- BEGIN 1 LINK ATTACHMENTS -->
<a href="javascript:Onetransport()"><img src="{ATTACHDOWNLOADURL[direct]}" name="Oneshow" border="0"></a>
<!-- END 1 LINK ATTACHMENTS -->
   </td>
  </tr>

</table>

</form>
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.
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership sparkalina
Views 302 views. Averaging 0 views per day.
Similar Topics
Submission Date Sep 17, 2008 - 11:12 PM