/    Sign up×
Community /Pin to ProfileBookmark

I am sure this is super simple, I’m just simply new.

Hi All,

Okay- so I am a graphic/web designer and I just started adding applets to websites for my clients. No, I can’t hand code. I do know how to click on the view source button and actually read through the html to find out what’s wrong though – so, I beg that you please forgive me.

Okay, back to the applets. I’ve got the basics down, can make slight alterations to get the script to read what I want it to read but I don’t know how to specify a specific css style to the output. So here I am, on my knees begging any of you bright developers to help. Here are the facts:

  • 1. I’m designing in GoLive

  • 2. The script I took is found here: [url]http://www.javascriptkit.com/script/script2/currentweek.shtml[/url]

  • 3. I edited the bottom of the script so that the final information reads:
    document.write(“This is Loss Control <b>week “+weekNo()+”</b> please click on <b>week”+weekNo()+”.pdf</b> to download.”)

  • 4. It’s functioning on the site but the default font (?) does not match the css styles I have on the page and it’s bugging the beejeezus out of me.
  • So questions:

  • 1.

    Is there a way to specify a specific style already living and breathing in my external css style sheet?

  • 2.

    If not, is there a way to change the font style and color in the script itself – I noticed that the <b> thing tells the following font to be bold and how a similar </b> thing ends the bold – is there a similar way to actually set the font size and color using simple < things?

  • 3.

    Does anyone know if there is a similar script available that will actually generate a live link to the appropriate .pdf file according to the current week?

  • I appreciate any and all help!

    k

    to post a comment
    JavaScript

    3 Comments(s)

    Copy linkTweet thisAlerts:
    @Mr_JJul 04.2005 — Have you tried adding a div or span and then using css directly or by a rule?



    document.write("[B]<div style="font-family:arial; color:red">[/B]This is Loss Control <b>week "+weekNo()+"</b> please click on <b>week"+weekNo()+".pdf</b> to download.[B]</div>[/B]")
    Copy linkTweet thisAlerts:
    @klsbsiauthorJul 04.2005 — Hi,

    I just wanted to thank you for the help! I was able to manipulate what you had written to make it appear just as I needed! Thanks again. Is there a url or a book I should buy that teaches the basics of javascript? I would appreciate any help.

    Forever indebted,

    Kristen
    Copy linkTweet thisAlerts:
    @Mr_JJul 04.2005 — You could do a google search for

    javascript reference

    which will bring up many sites, heres one to start you off

    http://www.w3schools.com/js/default.asp

    My own site, below, has a few examples that might help you out as well.
    ×

    Success!

    Help @klsbsi spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.17,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @nearjob,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,
    )...