Monday, February 06, 2012     | Register
Welcome to the Support Forums

In order to post to the support forums, you must be logged in as a registered user.


These forums are not moderated and may not be checked for a few days, so any important support issues should be emailed directly to support at orizonti.com for the fastest response.

Orizonti Forums
Subject: Sample Scripts - Rotating News

You are not authorized to post a reply.   
Author Messages
rstieb
Posts:738

7/14/2005 10:16 AM Alert 
The new NukeFeeds templating can be used to create some nice effects.  There are quite a few resources for scripts available.  I found the one below at http://www.dynamicdrive.com. 

The following code is used to display a DHTML rotating banner of content.

-----Place the following code in the Header Template-----

<style type="text/css">

#dropcontentsubject{
font-weight: bold;
}

.dropcontent{
padding: 3px;
display:block;
}

</style>

<script type="text/javascript">

/***********************************************
* ProHTML Ticker script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var tickspeed=3000 //ticker speed in miliseconds (2000=2 seconds)
var enablesubject=1 //enable scroller subject? Set to 0 to hide

if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('.dropcontent{display:none;}\n')
document.write('</style>\n')
}

var selectedDiv=0
var totalDivs=0

function contractall(){
var inc=0
while (document.getElementById("dropmsg"+inc)){
document.getElementById("dropmsg"+inc).style.display="none"
inc++
}
}


function expandone(){
var selectedDivObj=document.getElementById("dropmsg"+selectedDiv)
contractall()
document.getElementById("dropcontentsubject").innerHTML=selectedDivObj.getAttribute("subject")
selectedDivObj.style.display="block"
selectedDiv=(selectedDiv<totalDivs-1)? selectedDiv+1 : 0
setTimeout("expandone()",tickspeed)
}

function startscroller(){
while (document.getElementById("dropmsg"+totalDivs)!=null)
totalDivs++
expandone()
if (!enablesubject)
document.getElementById("dropcontentsubject").style.display="none"
}

if (window.addEventListener)
window.addEventListener("load", startscroller, false)
else if (window.attachEvent)
window.attachEvent("onload", startscroller)

</script>
<div id="dropcontentsubject"></div>




-----Place the following code in the Feed Item Template-----

<div id="dropmsg[ItemCount]" class="dropcontent" subject="[Feed]<br><a href='[Link]' target=_blank>[Title]</a>"><span class="normal">[Content]</span></div>
freeway
Posts:3

8/10/2005 8:36 AM Alert 

OK - now I'm not a competent scripter, so be gentle :-)


I've used the script above and have fiddled with a few things - with the desired changes, mind you I can't get the CSS 'class' that I want for the heading :-(


What I would really like to do is have a NukeFeeds module installed with 4 entered feeds, however display only four items, the first item from each of the four feeds!


This allows me to have a "summary" section in prime page real-estate, while the more extensive feds can be placed on other pages.


Any clues? ..Cheers.. Chris

freeway
Posts:3

8/10/2005 8:41 AM Alert 

Well - it's late I'm tired !!


Obviously - that's why there is an "Edit Options" button - set the Keep value to 1


.. Chris

rstieb
Posts:738

8/10/2005 6:09 PM Alert 

Chris,


First, thanks for the support...


Glad to see you figured it out...  Did you get the style working properly as well??


Let me know if you have any other questions...


 


Thanks,


Russel

Dan (guest)

9/30/2005 1:11 AM Alert 
Hi, I did the same and downloaded your script but keep getting very awkward formatting. I've tried with googlenews as well as cnn's RSS for Top Stories... any ideas?
Dan
rstieb
Posts:738

9/30/2005 8:40 AM Alert 
Dan,

Sounds like something may be missing...

I have google news and msnbc rotating on the demo NukeFeeds page here:
http://www.orizonti.com/Default.aspx?tabid=747

It's on the bottom right...

If you want to setup a temp account and email me: support at orizonti.com, I'll be happy to take a look for you...

Thanks,
Russel
You are not authorized to post a reply.
Forums > Orizonti DNN Module Support > NukeFeeds > Sample Scripts - Rotating News



ActiveForums 3.6
Copyright (c) 2012 Orizonti Group Inc.   |  Privacy Statement  |  Terms Of Use