Click to See Complete Forum and Search --> : Repost from CSS Thread... maybe it's a Java Challenge?


klsbsi
07-04-2005, 01:36 AM
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: http://www.javascriptkit.com/script...rrentweek.shtml
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

HaganeNoKokoro
07-04-2005, 01:54 AM
You're in the wrong forum. This is the Java, not the Javascript, forum. If you read the sticky at the top of the forum index, it will tell you the difference. Now, that's not going to stop me from trying to help you, just remember it for the future and post in the right place.

EDIT: I see you also posted this in the javascript forum earlier, and got no replies. Cross posting in the wrong forum is not the answer.

On to your problem:

Your link doesn't work, so I can't see the script. If you could zip up the relevent files, and post them as attachments, it would be very helpful.