Support » Fixing WordPress » Running text with database connection

  • Hello guys,

    Is it possible to have a running text in my site that display the latest entries of my blog and are clickable? (that’s why I assume we need a database connection)

    Thank You

Viewing 3 replies - 1 through 3 (of 3 total)
  • The database is used to store everything WP related, from posts, pages, comments, configuration, statistics and more.

    How you display the posts is entirely up to you. Currently thre is a Loop that will show the last X (configurable by you) posts starting with the latest on top.

    If you want to make the output a “scrolling” version, which is what I think you mean by running, then you can do so with the appropriate JavaScript code or whatever and it should work fine.

    Regards

    Yes, that’s what I’m asking about. Does anyone knows how to make such javascript that virtually pulls the title of my entries (based on certain variables) and also clickable.

    Any?

    Ok guys, I’m working out on this one but the news still doesn’t show up on the scrolling javascript. Here’s the code I write:

    <SCRIPT LANGUAGE=”JavaScript”>

    var myMainMessage=” rel=”bookmark”><?php the_title(); ?>;
    var speed=150;
    var scrollingRegion=50;

    var startPosition=0;
    function mainTextScroller() {
    var mainMessage=myMainMessage;
    var tempLoc=(scrollingRegion*3/mainMessage.length)+1;
    if (tempLoc<1) {tempLoc=1}
    var counter;
    for(counter=0;counter<=tempLoc;counter++)
    mainMessage+=mainMessage;
    document.mainForm.mainTextScroller.value=mainMessage.substring(startPosition,startPosition+scrollingRegion);
    startPosition++;
    if(startPosition>scrollingRegion) startPosition=0;
    setTimeout(“mainTextScroller()”,speed); }

    <body onLoad=”mainTextScroller()”>

    <form name=”mainForm”>
    <center>
    <input type=”text” name=”mainTextScroller” size=”40″ value>
    </center>
    </form></body>

    But still, the entry just doesn’t scroll, it doesn’t even displayed. Any hand here?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Running text with database connection’ is closed to new replies.