Results 1 to 2 of 2

Thread: Using a script in a template

  1. #1
    Join Date
    Jul 2008
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Using a script in a template

    1) Script Title: Background Image Carousel v1.1

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...bgcarousel.htm

    3) Describe problem: I installed the script and love it! However, I have one problem. I am using it on a home page. I installed the header portion in the template that is used for all pages and the div tag on the home page where it is viewed. It works great on the home page, but I get an error on all other pages saying that the DIV tag for the carosel cannot be found. What can I do to have it display only on the one page?

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    You would probably need to use php (assuming that it's a php template) to identify the homepage from the url, and if true, echo the div and insert the script, else do nothing.
    Last edited by Beverleyh; 10-13-2015 at 04:41 PM.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

Similar Threads

  1. Conveyor Belt Script Interfering With Template
    By John Moss in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 06-25-2010, 09:25 PM
  2. Need help with CSS Template
    By SomeOne in forum CSS
    Replies: 3
    Last Post: 08-18-2008, 02:00 AM
  3. php template help
    By abzd in forum PHP
    Replies: 4
    Last Post: 02-27-2008, 04:53 PM
  4. Login script for a php template?
    By Briggs in forum Looking for such a script or service
    Replies: 0
    Last Post: 01-15-2008, 03:06 AM
  5. Help needed to insert script into my web site template.
    By Waldemar in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 02-15-2006, 12:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •