Results 1 to 5 of 5

Thread: deactivate the link

  1. #1
    Join Date
    Sep 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow deactivate the link

    1) Script Title:
    advanced rss ticker
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...ajax/index.htm
    3) Describe problem:
    Is it possible to deactivate the link ?
    I mean when you click on the rss feed, it doesn't redirect you to a new page.

    I also wondered what to do if I let the link activated and if I want the link to open in a webpage that is mine (part of my site).

    Thank you

  2. #2
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Replace
    Code:
    rssticker_ajax.prototype.rotatemsg=function(){
    var instanceOfTicker=this
    if (this.mouseoverBol==1) //if mouse is currently over ticker, do nothing (pause it)
    setTimeout(function(){instanceOfTicker.rotatemsg()}, 100)
    else{ //else, construct item, show and rotate it!
    var tickerDiv=document.getElementById(this.tickerid)
    var linktitle='<div class="rsstitle"><a href="'+this.link[this.pointer]+'">'+this.title[this.pointer]+'</a></div>'
    var description='<div class="rssdescription">'+this.description[this.pointer]+'</div>'
    var feeddate='<div class="rssdate">'+this.pubdate[this.pointer]+'</div>'
    if (this.logicswitch.indexOf("description")==-1) description=""
    if (this.logicswitch.indexOf("date")==-1) feeddate=""
    var tickercontent=linktitle+feeddate+description //STRING FOR FEED CONTENTS 
    this.fadetransition("reset") //FADE EFFECT- RESET OPACITY
    tickerDiv.innerHTML=tickercontent
    this.fadetimer1=setInterval(function(){instanceOfTicker.fadetransition('up', 'fadetimer1')}, 100) //FADE EFFECT- PLAY IT
    this.pointer=(this.pointer<this.feeditems.length-1)? this.pointer+1 : 0
    setTimeout(function(){instanceOfTicker.rotatemsg()}, this.delay) //update container every second
    }
    }
    with
    Code:
    rssticker_ajax.prototype.rotatemsg=function(){
    var instanceOfTicker=this
    if (this.mouseoverBol==1) //if mouse is currently over ticker, do nothing (pause it)
    setTimeout(function(){instanceOfTicker.rotatemsg()}, 100)
    else{ //else, construct item, show and rotate it!
    var tickerDiv=document.getElementById(this.tickerid)
    var linktitle='<div class="rsstitle">+this.title[this.pointer]+'</div>'
    var description='<div class="rssdescription">'+this.description[this.pointer]+'</div>'
    var feeddate='<div class="rssdate">'+this.pubdate[this.pointer]+'</div>'
    if (this.logicswitch.indexOf("description")==-1) description=""
    if (this.logicswitch.indexOf("date")==-1) feeddate=""
    var tickercontent=linktitle+feeddate+description //STRING FOR FEED CONTENTS 
    this.fadetransition("reset") //FADE EFFECT- RESET OPACITY
    tickerDiv.innerHTML=tickercontent
    this.fadetimer1=setInterval(function(){instanceOfTicker.fadetransition('up', 'fadetimer1')}, 100) //FADE EFFECT- PLAY IT
    this.pointer=(this.pointer<this.feeditems.length-1)? this.pointer+1 : 0
    setTimeout(function(){instanceOfTicker.rotatemsg()}, this.delay) //update container every second
    }
    }
    in rssticker.js. But the question remains why would you want this. Also this script is a little outdated, and really needs an update(mainly the use of -moz-opacity instead of opacity)

  3. #3
    Join Date
    Sep 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you. Now the response to your question. It's because there are too many ads when you open the RSS feed.

  4. #4
    Join Date
    Sep 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I've tested your script but it doesn't work. :-(

  5. #5
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Sorry typo forgot a '
    Code:
    rssticker_ajax.prototype.rotatemsg=function(){
    var instanceOfTicker=this
    if (this.mouseoverBol==1) //if mouse is currently over ticker, do nothing (pause it)
    setTimeout(function(){instanceOfTicker.rotatemsg()}, 100)
    else{ //else, construct item, show and rotate it!
    var tickerDiv=document.getElementById(this.tickerid)
    var linktitle='<div class="rsstitle">'+this.title[this.pointer]+'</div>'
    var description='<div class="rssdescription">'+this.description[this.pointer]+'</div>'
    var feeddate='<div class="rssdate">'+this.pubdate[this.pointer]+'</div>'
    if (this.logicswitch.indexOf("description")==-1) description=""
    if (this.logicswitch.indexOf("date")==-1) feeddate=""
    var tickercontent=linktitle+feeddate+description //STRING FOR FEED CONTENTS 
    this.fadetransition("reset") //FADE EFFECT- RESET OPACITY
    tickerDiv.innerHTML=tickercontent
    this.fadetimer1=setInterval(function(){instanceOfTicker.fadetransition('up', 'fadetimer1')}, 100) //FADE EFFECT- PLAY IT
    this.pointer=(this.pointer<this.feeditems.length-1)? this.pointer+1 : 0
    setTimeout(function(){instanceOfTicker.rotatemsg()}, this.delay) //update container every second
    }
    }

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
  •