How can we do Scrooling text on top of the page

Hi
I have seen scrolling text in below link on top of the page.
http://htmldb.oracle.com/pls/otn/f?p=31517:1:2002688616473008
Could you pls let me know how can we do this?
Regards
Kiran Akkiraju

Hi Kiran, <br>
<br>
Do you mean the text that is going from right to left?<br>
That's javascript... below a copy/paste of Denes site.<br>
<br>
Dimitri<br>
<br>
-This is not my code, all the credits are for Denes Kubicek-<br>
<br>
<script language="JavaScript1.2">
//Specify the marquee's width (in pixels)
var marqueewidth="475px"
//Specify the marquee's height
var marqueeheight="40px"
//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed=2
//configure background color:
var marqueebgcolor="#ffffff"
//Pause marquee onMousever (0=no. 1=yes)?
var pauseit=1
//Specify the marquee's content (don't delete <nobr> tag)
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):
var marqueecontent='<nobr><span style="font-weight:bold"> Welcome to scrolling text... and of course, you can switch this newsticker off by cklicking HERE !</span></nobr>'
marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>')
var actualwidth=''
var cross_marquee, ns_marquee
function populate(){
if (iedom){
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
cross_marquee.innerHTML=marqueecontent
actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
else if (document.layers){
ns_marquee=document.ns_marquee.document.ns_marquee2
ns_marquee.left=parseInt(marqueewidth)+8
ns_marquee.document.write(marqueecontent)
ns_marquee.document.close()
actualwidth=ns_marquee.document.width
lefttime=setInterval("scrollmarquee()",20)
window.onload=populate
function scrollmarquee(){
if (iedom){
if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8))
cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px"
else
cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
else if (document.layers){
if (ns_marquee.left>(actualwidth*(-1)+8))
ns_marquee.left-=copyspeed
else
ns_marquee.left=parseInt(marqueewidth)+8
if (iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+marqueewidth+';height:'+marqueeheight+';background-color:'+marqueebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">')
write('<div id="iemarquee" style="position:absolute;left:0px;top:0px"></div>')
write('</div></div>')
else if (document.layers){
write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee" bgColor='+marqueebgcolor+'>')
write('<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>')
write('</ilayer>')
document.write('</td></table>')
</script>

Similar Messages

  • How Can I know about any change happened in the page??

    ........... I Use JDev 11g ........
    How Can I know if any change happened in the page???
    for example:
    I have a page and I press a creation button that create a new row in view object I want when I press any button that will call another page the page ask a user Are you want to save changes? before leaving a page.
    Or
    I edit the value in a view object but not committed ( I didn't commit the data in database ) . When I want to leave the page I want to display a message say : Are you want to save changes?
    How can I do that?
    Thank You...
    Sameh Nassar

    Check out http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html Example 60. Do not go by the 'on page load' name... This approach will allow you to plug in your custom code at any 'phase' of your adf life cycle. You can capture any request coming from your page, and check for pending transaction states and act accordingly.. I realize that the reply is a little abstruse, but this is not a drag-drop-smile requirement.. :-)
    http://download.oracle.com/docs/html/B25947_01/bcdcpal005.htm#sm0271
    Julian

  • How can I make a table cell extend beyond the page?  The text disappears when the cell becomes larger than the page.

    How can I make a table cell extend beyond a page?  The text disappears when the cell becomes bigger than the page.  I want the table to continue to the next page.

    As a student, you might be able to get Office for Mac from the college bookstore at a substantial discount. Otherwise, I think your best option for documents that need to be shared with Office users is to get one of the free Office clones such as LibreOffice.

  • How can I place my attachment on top of the message instead below the message?

    How can I place an attachment above or in the middle of a message instead at the end of the message?

    An attachment is not really placed in a email message. It is ATTACHED to it. That is why they call it an attachment. Even though it may show (be visible) in the email when read.
    You would need to Embed the file/image in the actual body of the email. Then you can place it anywhere you like.

  • How can I print a text with my comments in Pages 5.0?

    I have made comments on a text in Pages 5.0.  How can I now print the file and have my comments included in the hardcopy?

    I have found a round-about solution to my own problem:  with the file open, click file, export the file back into an earlier version of Pages, save the new file and then print it, but there has to be a better solution from within the new version of Pages.

  • How can I bind two text view elements in the same line?

    Hi all:
    In my case, it is not allowed that one text view is in the first line and another in the second line. How can I put them always in the same line?
    Thanks.

    Hi,
       as the window resizes the UIcontrols are also resized if wrapping is enabled and they will be in same row.
    as u mentioned they are two containers in root container but appears one by one do as below
    for root container
    set layout -  grid layout
    colcount - 2
    for 1st child container
    set layout -grid layout
    set colspan - 1
    as u requre 3 Ui control in it
    set colcount of child container to 3
    add the UI controls
    set the colspan of UI controls to 1.
    do as same for second container
    Thanks,
    yashpal

  • How can i add another mesh on top of the previous mesh

    Hi :
    I was trying to add multiple mesh on top of the previous mesh, not replacing the previous ones.
    Can any one help me please?
    Steve

    Steve,
    It seems that Mylenium is out.
    How can i add one more same object on top of the existing one to add mesh on top of the existing one ?
    You may Ctrl+C+F/Cmd+C+F and then set Fill and Stroke to None (at the bottom of the Toolbox).

  • How can i disable some text and item in the reports from printing

    i have a requirment to prepare a report for cheque printing on a formatted cheque paper..so i want the data should be printed in the paper not the whole thing..how can i do this...
    it is like this
    Name:- <coming from database>
    Address :-
    Rs :-
    in printing i need only the data not Name,Address and Rs headings..
    plz help me out??

    Hi,
    The usual method to influence whether an item should be printed or not is to adjust the function which lies underneath the item (simply return FALSE when you don't need it. You can also adjust the input and then return TRUE). I hope this will help you to solve your problem.
    Regards,
    Vincent ([email protected])

  • How can I change between JSP and Java in the page language attribute

    Does any one know the answer to this? I am trying to Switch between the 2 in the middle of the page. I want to include a file that uses <%@ page language = "JAVA" %> but the main mage uses Java Script. How can I switch it for this one file. I can't find the answer anywhere. Thanks for your time, and please help me. Also can some one post a good link for Session Tracking. I can't find much good information on that. Thanks again.
    Eagles757(JAY)

    Wow this didn't make sense in so many ways. It's truly bordering on nonsense. I think it's written in English.
    <%@ page language="Java" %>This is optional. JSPs don't use any language other than Java. This is known as a JSP Directive. This line will be processed by the JSP/Servlet engine, and you won't see it in your output. If JSP ever supported a language other than Java, this would be where you would change it.
    <script type="text/javascript">
    <!--
    // -->
    </script>You can include a block like this in your JSP file. The JSP/Servlet engine will not process this script block at all (unless you include JSP <% %> tags somewhere in there, in which case they will be processed before the response is sent back to the web browser). This script block is where JavaScript goes. This code will be executed on the client's browser.
    This is about as clear as I can make things given how muddled your question is. Please ensure you understand the basic differences between JSP, Java, JavaScript, HTML, Servlet engine, web browser before proceeding. Understand what code executes where, and in what order.
    Brian

  • How can I recover documents that were stores in the pages app?

    I have an original iPad. This evening, as I was using it, I got a message that an update was available for pages. I selected "update". It attempted to install the new pages and froze. I connect to iTunes to try to get it back to old version of pages (the new versions won't work on the original iPad) by restoring to back-up. That resulted in deleting the pages app.
    Ahhhh!!!! I need my documents! They had been backed up to iTunes and it was recently backed up to iCloud.
    Someone please help me figure out how to find my docs!!!
    THANK YOU

    Basics of File Recovery
    Files in Trash
    If you simply put files in the Trash you can restore them by opening the Trash (left-click on the Trash icon) and drag the files from the Trash to your Desktop or other desired location.  OS X also provides a short-cut to undo the last item moved to the Trash -press COMMAND-Z.
    If you empty the Trash the files are gone. If a program does an immediate delete rather than moving files to the Trash, then the files are gone.  Recovery is possible but you must not allow any additional writes to the hard drive - shut it down. When files are deleted only the directory entries, not the files themselves, is modified. The space occupied by the files has been returned to the system as available for storage, but the files are still on the drive. Writing to the drive will then eventually overwrite the space once occupied by the deleted files in which case the files are lost permanently. Also if you save a file over an existing file of the same name, then the old file is overwritten and cannot be recovered.
    General File Recovery
    If you stop using the drive it's possible to recover deleted files that have not been overwritten by using recovery software such as Data Rescue II, File Salvage or TechTool Pro.  Each of the preceding come on bootable CDs to enable usage without risk of writing more data to the hard drive.  Two free alternatives are Disk Drill and TestDisk.  Look for them and demos at MacUpdate or CNET Downloads.
    The longer the hard drive remains in use and data are written to it, the greater the risk your deleted files will be overwritten.
    Also visit The XLab FAQs and read the FAQ on Data Recovery.

  • How can I automatically scale a table based on the page size?

    I have multiple tables within 100s of pages of an InDesign file and when I use the liquid layout to scale the content of the pages based on the size, the tables stay the same. I've searched for a while now and can't come up with anything other than going in and manually doing it - which I don't have the time to do.

    You probably haven't activated the layout adaptation (I'm on german ID, don't know the correct name for it in English) in the mini menu of the Liquid Layout panel.

  • ADF how can i execute a query with parameters when the page renders

    hi
    i am using ADF web 11g
    i need to execute a query with parameters when the page renders
    thanks

    hello,
    I'm a fan of Java code, I really am.
    But when you use ADF, you decided to move to a more declarative environment.
    So why not do it declarative, the adf way?
    In your pagedef insert a action binding.
    This can be anything, a call to the application module, a call on the iterator(Like executeWithparams, etc.)
    Create an invokeAction in your pagedef and set the condition.
    This example refreshes(Action 2 is execute query) the data.
    First the method binding:
        <action IterBinding="PersoonIterator" id="Execute" InstanceName="LSAppModuleDataControl.Persoon"
                DataControl="LSAppModuleDataControl" RequiresUpdateModel="true" Action="2"/>And the invoke action
        <invokeAction Binds="Execute" id="refreshData"/>This always refreshes the data on page entry, but anything is possible, you can set condictions for the invokeAction.
    -Anton
    PS Yes I know that pagedefs become backing beans in the end and yes that is Java code, but if you wanna play the ADF way, the goal is the reduction of Java code and the increased performance of declarative programming.

  • How can i make Event witch is started before the page render.

    hello i want to do this :
    when i open some JSP no matter from where i want to have a backing bean for this jsp that have a method that starts before the render response.
    my ideas is to have a list of records from a sql server and i need a method that makes a conncetion to the sql server and add everythink in the request so when the jsp is displayed to have content.
    i need example of the backingbean method paste plz.

    I think you can add the sql coneection and all those initial things to the constractor of the bean which contains the variable u need in the page..
    and leave the getters and setters of those variables empty..
    if the DB changes frequently, you can make the scope of the bean: page scope
    otherwise let it be session scope..

  • How can I add a symbol on top of text in Iweb?

    Hi there,
    How can I add a symbol on top of a text box in iweb.  When I add it, the symbol moves to the left or right of the text instead of right on top of it.
    Any suggestions would be appreciated.

    Here I clicked out side of any text box and drew a star from the shapes panel.

  • How can I place photo icons on top of folders?

    I put 4 folders in my dock. I need to ID them with photo - icons.
    1) How can I place photo icons on top of 3 folders, so that they also retain
    their folder shape?
    2) And, to make one of them look like a folder that has text?
    Intel Mac - Dual - Tiger 10.4.9
    Thank you.

    It sounds like what you actually need to do is amend the icon itself - something like Iconographer will help you with that. Open the icon of any standard folder, copy in your photo image, amend the result to your satisfaction, and save it as a new icon. Then apply that icon to your folder.
    Matt

Maybe you are looking for