Best way to use CSS in random text

Mick white recommended this script to display random text. Is there a way to mod this so that it can show several styles CSS (a model for the quote) and one for the name? Or should I do this another way? (I'm not very good with databases still.) Thank you!


< p > quote of the day: < br >
< script >
function randomQuote() {}
var quotes = ["quote1", "quote2',"quote3"];
return quotes [new Date (% quotes.length)];
}
document. Write (randomQuote ());
< /script >
< /p >

Nick616 wrote:
> Thanks for the help - so if I understand you is final, no code? (Also
(> tried with a var in front of "whichQuote" statement) but no work.
> Not sure what I'm missing. I would like to know if it's obvious. Otherwise no worries I
> will try another method as he read from a text file.
>
> Thanks again,.
>
> Nick
>
>
>
>


>


>
>


>







Mick

Tags: Dreamweaver

Similar Questions

  • Please advise me on the best way to bend/warp/envelope this text

    Hi all

    Please can you advise me on the best way to distort/warp/envelope this text. I need to fit exactly (heightwise) in the white box below. I thought it would be a very simple thing to do in Illy, but I was wrong! I tried using the string and mesh methods, but am just not having much luck! I even tried to do it manually, point by point (after having developed the appearance), but it looks like a MESS:)

    As you can see, the form of the white arc is not consistent in height/thickness, as it tapers off the coast toward the ends. It is thicker/more higher in the Middle, so I need to get the letters to increase in height he touch the top and bottom of the box white and then tapered down in height.

    Please can you help me?

    Thank you in advance, please

    Christine

    racingartwork.jpg

    1 create a text, select the object.

    2 object > envelope distort > make with mesh
    Lines: 1
    Columns: 2
    3. align the center of the text with the center of the wheel.
    4. use the direct Selection tool, Rotate tool to adjust the points, direct Selection tool to adjust the handles.

  • What is the best way to use the Y50-70 battery please?

    I bought the laptop y50-70

    but I want to know what is the best method to use the battery.

    and the best way to recharge.

    NOTE *.

    IAM always use the cable and I gave the battery except a few times.

    Thank you very much..

    Best way to use the battery, if your laptop should ALWAYS be connected in-

    Go to eat energy Lenovo - should be a RED icon in the system tray - and choose the mode for a better health of the battery (or battery Protection or health of battery optimized mode).

    I don't know what the energy Manager version you have, but the option must seem similar. What it does is, it will keep your battery charged ONLY up to 60 percent and will increase its service life.

  • What is the best way to use Administrator status?

    What is the best way to use Administrator status?  Sign in to get it, KEEP IT?   Connect you to it, log out and log in whenever you need?

    Hello

    Thank you for writing to Microsoft Communities.

    It does not really matter with the UAC. Using of standard and administrator accounts, you get invited if something needs administrator access.
     
    Hope this information is useful.
  • What is the best way to use files recovery

    I work in FM 11 and broke FM a few times. What is the best way to use the recovery files and save them as normal files? So should I filter a window of the Explorer to "recovery" so FM don't ask me if I want to use the older recovery files? Thanks for your help.

    > What is a wash of the MIF?

    1. Save all the files of FM component .mif as MIF format.
      Save the .book as. book.MIF in the MIF format.
    2. Output FM.
      Restart FM.
    3. Open .mifs. Save as FM, replacing the old (FM probably saved files).
    4. Open the. book.MIF, re - register under .book.
      Note: do not open the. first book.MIF and then try to open the component files, or open the files binary pre - MIF.

    FM11 and 12 can have a free add-on as much as the fact in a single operation.

    Washing MIF creates new .book files and FM have syntactically correct data structures (and that may have lack of bad content). They are less likely to crash, but can still have problems.

  • Best way to use quot &amp; data xml; simple &amp; quot; controls

    Good evening everyone,

    I'm working on an application that retrieves the XML data and uses a DataGrid to display their (the very standard way).
    When a user selects a row in the DataGrid, I want to show more information in another panel - but not in a Datagrid (regarding only ONE item), but in simple controls such as labels or text boxes.
    This information is also stored in the XML data source, but it is not displayed in the DataGrid control.

    I think I'm pretty confused at this point, I think there must be a way easy and smart to do that, but I have not tried.
    I rly want to avoid to "manually" using SOMETHING like "label.text = xmlSource. ....'

    Is anyone an idea? :)

    Best regards
    Florian

    OHAIO

    Suppose you have 3 columns {id, firstName, LastName}
    Set the visible attribute for the column you want to hide to false.
    Add the click event to your DataGrid
    in the click handler function:
    private void clickHandler(e:Event):void
    {
    firstNameText.text. = selectedItem.firstName (e.currentTarget as DataGrid);
    }

  • Best way to use the Scout?

    Hello everyone, I'm a pretty new to use the pathfinder tool and I know how powerful it is, but when I use it I get weird results. What would be the best way to remove these points?

    Untitled-2.jpg

    Have you tried to use the Trim function in the Pathfinder/menu panel? I tried to reproduce your screenshot and got the results below:

    You can also use the Divide function in the Pathfinder/menu panel to achieve the same results. Two of these actions will be cutting your objects everywhere where they overlap, but you can merge forms by using the merge feature in the menu / the Pathfinder Panel.

  • Best way to AutoResize resize fonts to text/etc on container label?

    I looked around, but I can't really find any proper code for this.

    What is the best way to resize a text field or label police to integrate into its container after resizing the container? that is a container is made smaller, and if the font size is too large, it makes the text field too big for its container it resizes until he goes.

    Here is the code I have in place now: -.

    <mx:Canvas width="100%" height="100%" resize="">
    
    
    <mx:Text id="mytext" width="100%" height="100%" text="{data.label}"/>                                  
    
    
    </mx:Canvas>
    
    
    
    

    Hello

    You can access the canvas width and height as below:

    
            
    
    

    Best regards

    Pablo Souza

  • Best way to use Windows Update - Primo

    Hello world

    I just did a complete reset of my computer Windows 8.  I want to upgrade to 8.1 Windows since everything is wiped clean.  But first, I have apparently 165 important Windows updates installed.

    The last time I tried to do a reset before Windows Update, it kept "ghost" return.  So I gave up and never tried.

    I have some free time and would really like to do this work.

    Right now, I'm just let do it's thing by downloading everything in bulk and for the best and the worst with the exception of hope so.

    What is the best way to get all the updates to cross?

    NOTE for Windows Customer Service to transmit to one who can do something about it - Windows Update is one of the most AGGRAVATING on Windows things.  I have never run on any computer or OS, I had, but keep the faith that one day that will change.

    Hello Jenna.

    Please keep us updated on the status of the issue.

    Please do not hesitate to answer, in the case where you are facing in the future other problems with Windows.

    Have a great day!

  • Best way to display a tree expansion text / image?

    Hello world!  I create my 2nd flash interface.  Displays the chart below:

    When someone clicks on a phase of the cycle, with bland graphics out and a new window will appear.

    I know how to do that in flash.  What I don't know is how best to organize the text in the pop-up window.  Specifically, when someone clicks the sign more (look closely in the 2nd image to see an example of an extended section), I want the space below the text to expand, showing more text or image.  When the user is finished, they click the 'X' to close the enlarged section.

    It is a format of menu tree.  However, instead of simply to develop a little phrase, it spread to show images or an entire paragraph.


    Issues related to the:

    1. Should what code I use to do this?  I guess I can't insert just CSS / Javascript in flash, lol.
    2. I make my window flash player big enough to fit all the elements, in which case the user extends to all sections and wants to see it all enjoy a view? Or is there a way to dynamically increase the vertical size of the flash drive to accommodate the expanded text?  I like how HTML allows you to dynamically extend the height of vertical cell, as more text is added.

    My due date is September 24.  If I can't have the ability to develop / hide sections, I'll show just the window with everything already extended... or I'll just post it in a separate window within the player.

    Yes these are basic effects supported by jQuery. Here is a sample API with these effects and demos page. Just click on an effect and scroll down on the page and it will demonstrate the effect.

    http://API.jQuery.com/category/effects/

    Here's a random example of a batch of expand/retract that I made earlier. In the content area, you can see chart and keys to enlarge / reduce. If you change the model to iVentrilo, you will see a bunch of additional specific controls model drag down. These sub controls have more enlarge / reduce jQuery on them as the change of details on "Customize." Those under the options that you choose to hide the collapse, etc etc. Just an example of nested expand collapse, although not terribly optimized performance, it was a fast job...

    With the CSS absolute positioning and z-index, you can put graphics on other charts, use JS/jQuery to animate the movement, visibility and other properties of any object and easily do what you want (even spinning wheels).

  • OMEN of HP for computer laptop 15-ax006no: best way to use the battery

    Hello!

    I bought a HP OMEN for computer laptop 15-ax006no (http://store.hp.com/SwedenStore/Merch/Product.aspx?id=X9Z44EA & opt = UUW & salt = NTB) earlier this week and I wonder how is best to use and to keep the battery?

    -Should I disconnect the battery when I have access to outlet?

    - Or should I fully charge and then use remove the charger and only work on battery?

    Thanks in advance!

    Hello

    Batteries and Chargers for modern laptops are now smarter than we thought. They stop to load when 100% full

    1. Should I disconnect the battery when I have access to outlet? You, the risk is down, you have no backup power supply and it can kill your machine, speciall if she had a normal HARD drive.
    2. Or should I fully charge and then use remove the charger and only work on battery? This isn't a good idea because the battery will run out and you will need to recharge which means increase in cycles and the charge battery will die earlier.

    My option: maintain the battery even when plugin

    Kind regards.

  • Satellite U200: What's the best way to use a battery?

    Sorry to ask a stupid question but the U200 is my first laptop ever. OK, I already did what most PC magazines will tell you, that is to say completely charge the battery then run until the process of vacuum and then repeat two or three times, it's supposed to get all the cells in the battery operation.

    Now, what is the best thing to do, exercise like that or do I have to wait until the battery is half empty or so & then connect the charger?
    I think that it is not good to run the laptop with a full battery & charger connected, until guy do you say when you want to use your laptop for 6 hours or more?

    Hello

    > believe that it is not good to run the laptop with a full battery & charger permanently connected.

    Well, the new generation of portable and battery allows to use the battery and the power adapter at the same time.
    There are no bad effect memory with batteries at the beginning!

    So my laptop is connected to the power supply and the battery is still connected.
    It has no negative influence on the performance of the battery. But you should know that there is a limit of battery charge.
    After that all 500times completely procedures of load and discharge, the battery will slowly discharge performance. This is nothing unusual.

    PS: Note: in the instructions you will find useful tips and information about how to manage the battery!

    Best regards

  • Best way to use audio

    I build a project where each slide features a single piece of audio. Audio / narration was imported as background music, and it seems to work very well even if I don't have the ability to pause/stop the audio timeline as background sound continuously.

    In general, it is better to have the audio 'attached' to a button than as background music?

    It is usually best to attach an audio clip of storytelling separate for each slide.  The background to the project (if any at all) audio is generally used for the background music playing or a loop behind the voice-over.

    Captivate has many options for adding audio.  But each of the different options are designed to meet a different design solution.

    Audio fixation to a button would be used when you want an audio clip to play when the button is clicked.  So in this case, you set the event on the success of the button to perform an action to play Audio.  (If you attach the audio object button itself then the audio would play as soon as the button has become visible on the timeline and not when it was activated.)

  • 'In-Line Graphics' need best way to use it in InDesign

    I'm working on a pretty dry piece with more than a thousand pages and you want to add some simple graphics, based on the type to show a part of the content of the books. I want the graphic to move with the text, when there is text re-flow as the entire book is connected and will move on each page, when I make changes. I don't want the graphic elements to stay in place. The term "design online" gave no result on a search on these forums, so I guess that this term, days - manufacture by Pagemaker and Quark days is no longer a valid condition.

    Help me, please tell me what graphics capabilities InDesign that will allow me to insert the following which can be built directly in InDesign and not placed outdoor graphics created in another application:

    The box around the text

    Tables

    Straight lines or rules

    These are the things I want to make use of. Please give me your experience with the latter and how well they are working in InDesign, also give quick steps in how to create these types of graphics in InDesign, I thank you for this help.

    Ken

    I recommend starting with the InDesign help function - the term you're looking for is 'anchored objects '. There is a long article with many examples and screenshots.

  • the best way to use flash without giving up the SEO

    Is a Flash CMS website gives you the best of both worlds? I want a "flashy" site but I need to be searchable. "." Is a Flash CMS site rank well enough to do the job? , If it ranks well, it's because the portions Flash would get no SEO, but the HTML parts would be?... OR is it something fundamentally lacking in the software it will keep low on the rankings, no matter what the relationship between Flash and HTML on this site?

    A site in HTML with Flash plugins would hurt my ranking much?

    Could I solve my problem better by having a based HTML landing page which gives access to the 2 sites, only strictly HTML and Flash or Flash CMS based? Assuming that the landing page and the HTML parts are optimized properly, is the content that is on the page of launch of HTML and HTML site going to give me good SEO results, although one of the options to choose is a Flash site?

    Here are some resources that you may find useful...

    SEO Flash
    ---------

    http://www.SEOBook.com/archives/001457.shtml

    http://www.flashseo.com/

    http://blog.searchenginewatch.com/090317-120653

    and the O'Reilly book: Search Engine Optimization for Flash by Todd Perkins, ISBN: 978-0-596-52252-0

Maybe you are looking for

  • Satellite M50: Power LED lights but the white screen

    Hello When I try to run my M50 all I get is the fan runs for about 5 seconds and a blank screen but the power light is on. It makes no difference when its clogged, it won't start at all.It's happened once before, but worked the next day without probl

  • How can I remove two of the three search bars - now appear on my screen

    When I go to Mozilla firefox, somehow (and I guess I made the mistake). It appears 3 three bars of 'search '... Obviously, I need only one (1)... How can I remove two of the three bars "get"?

  • Will not update 'KB976321' or ' KB981726! Need help!

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: Don't update KB976321 or KB981726 Don't let me get rid of them otherwise I don't even use microsoft outlook

  • Windows 7 & Server 2008 R2 windows update errors

    I have about 40 users all running windows 7, and all have a Windows Update issue as well as the Windows 2008 R2 server. I tried for 2 weeks now to solve this problem, but keep hitting the walls.  I noticed that we are more windows updates notificatio

  • Windows 7 Home Premium random freezes

    So, I had this problem for quite a while now. I tried to start troubleshooting tool Windows, all the other points that have been proposed on the forums. No help. My computer keeps randomly freezes, sounds a bit weird and duplicates. My memory is good