Ask a Question related to Macromedia Fireworks, Design and Development.
-
LequinhoTso webforumsuser@macromedia.com #1
Fireworks doesn't accept my javascript code
Hi, help me please, i need to put this javascript (It shows the date, but it is in portuguese, but that's not the problem) in my .png file:
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Domingo","Segunda","Terça","Quarta","Quinta ","Sexta","Sábado")
var montharray=new
Array("Janeiro","Fevereiro","Março","Abril","Maio" ,"Junho","Julho","Agosto","Setembro","Outubro","No vembro","Dezembro")
document.write("<small><font color='000000' face='Arial' size='2'><b>"+dayarray[day]+", "+daym+" de "+montharray[month]+" , "+year+"</b></font></small>"),
but at the highlighted line, the program says that the document is not defined.
I'm just a beginner i don't know how to define it.
Can someone tell me how will the code look like?
Help me please
LequinhoTso webforumsuser@macromedia.com Guest
-
code hint javascript api
I am extending dreamweaver to add code hinting and color coding to my proprietary scripting language. I am fine with the Javascript but I am not... -
Fireworks Javascript Fails
The Web Photo Gallery Extension fails because of a Javascript error (won't load in Fireworks). Is this a Dreamweaver prob or Fireworks? And how... -
JavaScript issue after exporting HTML from Fireworks
I have been using Fireworks MX 2004 to create a web page with pop-ups, slice it and export it to HTML. In Dreamweaver MX 2004 I would then add a... -
how do i hide FireWorks code for drop downs
I am trying to hide or create a direct link for my fireworks drop down menu so that it doesn't show up in the source code of all of my pages. I... -
Need Help with fireworks 4 ( get error code )
when i open the programm up it's ok ( Crecked ) when i try to type in something i get this error an internal error occurred an internal error... -
Murray *TMM* #2
Re: Fireworks doesn't accept my javascript code
You don't put javascript into PNG files. You put it into HTML pages.
It would go in the <head> region of the page, between <script
type="text/javascript"> and </script> tags.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
ANSWERS
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"LequinhoTso" <webforumsuser@macromedia.com> wrote in message
news:bmot0a$2gh$1@forums.macromedia.com...it is in portuguese, but that's not the problem) in my .png file:> Hi, help me please, i need to put this javascript (It shows the date, butArray("Domingo","Segunda","Terça","Quarta","Quinta ","Sexta","Sábado")>
> var mydate=new Date()
> var year=mydate.getYear()
> if (year < 1000)
> year+=1900
> var day=mydate.getDay()
> var month=mydate.getMonth()
> var daym=mydate.getDate()
> if (daym<10)
> daym="0"+daym
> var dayarray=newArray("Janeiro","Fevereiro","Março","Abril","Maio" ,"Junho","Julho","Agosto",> var montharray=new
>
"Setembro","Outubro","Novembro","Dezembro")size='2'><b>"+dayarray[day]+", "+daym+" de "+montharray[month]+" ,> document.write("<small><font color='000000' face='Arial'
"+year+"</b></font></small>"),defined.>
> but at the highlighted line, the program says that the document is not>
> I'm just a beginner i don't know how to define it.
>
> Can someone tell me how will the code look like?
>
> Help me please
>
>
Murray *TMM* Guest



Reply With Quote

