Click here to Skip to main content
15,892,674 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: newsticker Pin
smiley_jatin16-Aug-09 19:54
smiley_jatin16-Aug-09 19:54 
AnswerRe: newsticker Pin
Marc Firth16-Aug-09 22:09
Marc Firth16-Aug-09 22:09 
var marqueeWidth='950';                       
var marqueeHeight='18px';                    
var pauseMarquee=true;                             
var fontFamily = 'arial,sans-serif';
var marqueeSpeed=1;           
var speedTwo=marqueeSpeed;
var textSpan, marquee;
var fontSize = parseInt(marqueeHeight) - 6;

function marquee(){
     var content = document.getElementById('scroller').getAttribute('content');
     if (document.getElementById){
          var scrollit = '<div style="position:relative; margin:auto; width:'+marqueeWidth+'px;height:'+marqueeHeight+';overflow:hidden;color:#FFFFFF;"';
          if (pauseMarquee) scrollit += ' onmouseover="speedTwo=0" onmouseout="speedTwo=marqueeSpeed"';
          scrollit +='><div id="marquee" style="position:absolute;left:0px;top:0px;font-family:'+fontFamily+';font-size:'+fontSize+'px;white-space:nowrap;"><\/div><\/div>';
          document.getElementById('scroller').innerHTML = scrollit;
          marquee = document.getElementById("marquee");
          marquee.style.left=(parseInt(marqueeWidth))+"px";
          marquee.innerHTML='<span id="text">'+content+'<\/span>';
          textSpan = document.getElementById("text").offsetWidth;
          setInterval("scrollscroller()",17);
     }
}

function scrollscroller(){
     marquee.style.left = (parseInt(marquee.style.left)>(-10 - textSpan)) ?parseInt(marquee.style.left)-speedTwo+"px" : parseInt(marqueeWidth)+4+"px";
}

window.onload=marquee;










That js should get you started - you need to change it so that it goes up and down not left though.


QuestionDisplaying a div at the bottom of another div Pin
Ersan Ercek16-Aug-09 2:52
Ersan Ercek16-Aug-09 2:52 
AnswerRe: Displaying a div at the bottom of another div Pin
Abhishek Sur16-Aug-09 7:38
professionalAbhishek Sur16-Aug-09 7:38 
QuestionHow to Select different Printer for different document? Pin
suzy_bcny15-Aug-09 6:21
suzy_bcny15-Aug-09 6:21 
AnswerRe: How to Select different Printer for different document? Pin
Abhishek Sur15-Aug-09 13:23
professionalAbhishek Sur15-Aug-09 13:23 
AnswerRe: How to Select different Printer for different document? Pin
Abhishek Sur15-Aug-09 13:25
professionalAbhishek Sur15-Aug-09 13:25 
GeneralRe: How to Select different Printer for different document? Pin
suzy_bcny16-Aug-09 8:38
suzy_bcny16-Aug-09 8:38 
GeneralRe: How to Select different Printer for different document? Pin
Abhishek Sur16-Aug-09 21:35
professionalAbhishek Sur16-Aug-09 21:35 
GeneralRe: How to Select different Printer for different document? Pin
suzy_bcny17-Aug-09 2:56
suzy_bcny17-Aug-09 2:56 
GeneralRe: How to Select different Printer for different document? Pin
Abhishek Sur17-Aug-09 6:09
professionalAbhishek Sur17-Aug-09 6:09 
GeneralRe: How to Select different Printer for different document? Pin
suzy_bcny17-Aug-09 8:15
suzy_bcny17-Aug-09 8:15 
QuestionFlash SWF Variable Pin
GreenKhan14-Aug-09 21:05
GreenKhan14-Aug-09 21:05 
AnswerRe: Flash SWF Variable Pin
Marc Firth16-Aug-09 22:12
Marc Firth16-Aug-09 22:12 
GeneralRe: Flash SWF Variable Pin
GreenKhan17-Aug-09 2:24
GreenKhan17-Aug-09 2:24 
GeneralRe: Flash SWF Variable Pin
Marc Firth17-Aug-09 2:32
Marc Firth17-Aug-09 2:32 
QuestionCreate javascript popup window Pin
dcode2514-Aug-09 6:50
dcode2514-Aug-09 6:50 
AnswerRe: Create javascript popup window Pin
Abhishek Sur15-Aug-09 13:28
professionalAbhishek Sur15-Aug-09 13:28 
GeneralRe: Create javascript popup window Pin
dcode2516-Aug-09 7:34
dcode2516-Aug-09 7:34 
GeneralRe: Create javascript popup window Pin
Abhishek Sur16-Aug-09 21:28
professionalAbhishek Sur16-Aug-09 21:28 
Questionproblem with the datagrid Pin
prakash.ss8313-Aug-09 19:33
prakash.ss8313-Aug-09 19:33 
AnswerRe: problem with the datagrid Pin
Suresh Suthar13-Aug-09 20:19
professionalSuresh Suthar13-Aug-09 20:19 
QuestionAjaxToolkit not working Pin
reogeo200813-Aug-09 2:42
reogeo200813-Aug-09 2:42 
AnswerRe: AjaxToolkit not working Pin
Suresh Suthar13-Aug-09 20:24
professionalSuresh Suthar13-Aug-09 20:24 
Question__doPostBack Event Pin
kKamel13-Aug-09 0:17
kKamel13-Aug-09 0:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.