TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,236
  • Total Topics: 21,353
  • Online today: 739
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 233
  • Total: 233

Featured Content Slider Block

Started by rockskullz, November 16, 2007, 07:41:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rockskullz

Ok, im pretty new to TP and SMF but with some playing around I have implemented this handy little snippet into my website. It works great and has no flaws that im aware of. I got the script from www.dynamicdrive.com. Its called the 'Featured Content Slider'. (link: http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.htm) I have edited my css file to work with my theme so dont expect it to look exactly like mine.

DEMO - http://offroad-review.com

Step 1. Download 3 files from http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.htm (sorry couldnt attach them.
Step 2. Create 2 script blocks. 1 for each code below. (make sure both are visible to guest)
Step 3. Adjust and edit css file to match your profile, etc.

Insert this code into a center or frontpage block. You can add or remove content by adding or deleting this code below in the first file.

<div class="contentdiv">

Insert text or html here

</div>



Insert this code into a center or frontpage script block

<div class="contentslide" id="slider1">
<div class="opacitylayer">
<div class="contentdiv">

<table cellspacing="1" cellpadding="1" width="400" summary="" border="0">
   
Insert text or html here

</div>
<div class="contentdiv">

Insert text or html here

</div>
<div class="contentdiv">

Insert text or html here

</div>
<div class="contentdiv">

Insert text or html here

</div>
<div class="contentdiv">

Insert text or html here

</div>
<div class="contentdiv">

Insert text or html here

</div>

</div>
</div>
<div class="pagination" id="paginate-slider1"></div>
<script type="text/javascript">
//Define: ContentSlider("slider_ID", [autorotate_miliseconds], [custompaginatelinkstext], [customnextlinktext])

ContentSlider("slider1", 3000)
//OR ContentSlider("slider1", 3000, linktextarray)
//OR ContentSlider("slider1", 3000, linktextarray, "Foward")
//OR ContentSlider("slider1", "", linktextarray)
//OR ContentSlider("slider1", "", "", "Foward")
</script>


Insert this code into a center or frontpage script block

Important!! Edit the URL's for your file locations on this block
<link href="http://yourwebsite.com/contentslider.css" type="text/css" rel="stylesheet" /><script type="text/javascript" src="http://yourwebsite.com/contentslider.js">

/***********************************************
* Featured Content Slider- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

</script>



rockskullz

34 views and nobody appreciates my hard work...  O0 j/k

bluedevil

Easy fella. Some of us work the weekends.


Yeah...ive seen the script before and been wanting to tackle this.  It looks really good in your site using the srticle system.  I like it.

Im giving this a shot.

Craven


noxe

Great work, will be testing this out when I get home!

rockskullz


delvec

I love this script but for some reason Im messing it up
Help please?
First Im downloading the 3 files (css, js gif) and am I supposed to upload them to my root?
OK now I think this is where Im messing up-
QuoteStep 2. Create 2 script blocks. 1 for each code below. (make sure both are visible to guest)
Do you mean the css & js or the 2 below- because theres three below So should I have 5 blocks total?


Or does the first code
<div class="contentdiv">
Insert text or html here
</div>

just give you a spot to to holder content that you can move in and out of the final block?

Please help make sense of this?

Thnx

lmoody1967

Has anyone else had any luck getting this script to work ?  Not sure what I'm doing wrong, but no matter what I've tried I just can not get it to work.  Looks like a great script and would love to get this working on my site. 

IchBin

Perhaps you could show us what is wrong, or even tell us whats happening? "Not working" doesn't describe much.

lmoody1967

#9
Sorry, I realized that I didn't give much information after I posted and was hoping to edit that message before someone caught me...  I usually have pretty good luck getting these to work, but I'm really struggling on this one and I'm sure it's just something stupid on my end.  Would greatly appreciate any help in getting this to work.

I've uploaded the 3 files to my sites root directory, created 3 script center blocks and pasted the code per the instructions.   When I go to view it on my site, keep in mind I haven't edited any of the text yet, I see the following:

Block 1:  Just the text "Insert text or html here"

Block 2:  Juse see an empty blue box.

Block 3:  Doesn't show up on my site.

None of my front page articles show.

My site is:  http://www.suicide-squeeze.net

This website is proudly hosted on Crocweb Cloud Website Hosting.