This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > April 2004 > Preload Code in Odd Places - DW MX 2004





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Preload Code in Odd Places - DW MX 2004
George

2004-04-21, 2:36 pm

SITUATION:
I'm a new Dreamweaver user. I used DW MX 2004 insert preload code into a
page, and upon checking the code I found the onload was entered in a <td>
tag like so:

<td onload="MM_preloadImages('images/pic1.gif','images/pic2.gif')">

I've always thought this code **usually** belongs <body> tag. I manually
moved the code into the <body> tag, and reviewed my printed instructions for
inserting preload code. The instructions say:

1. Select an object and open the Behaviors panel.
2. Click the Plus (+) buttons and select Preload Images from the pop-up
menu.

etc..........

So following #1 I selected an object, picture on the page in the WYSIWIG
view, and I assume the <td> that contained the picture was where the onload
event was loaded..

QUESTION:
What should I have clicked on instead of the picture, or what did I
(probably) do wrong?

-George


Terry

2004-04-21, 2:37 pm

Macromedia have released a bug fix for MX2004 which you can download from
their site. It may not help this specific problem but it will certainly
help with others. When we are new to something why do we always assume that
it must be us that is doing something wrong and not the software
manufacturer?

HTH

"George" <geo@divergentweb.NO.SPAM.com> wrote in message
news:j9-dnaCf0_WwHOHdRVn-gw@comcast.com...
> SITUATION:
> I'm a new Dreamweaver user. I used DW MX 2004 insert preload code into a
> page, and upon checking the code I found the onload was entered in a <td>
> tag like so:
>
> <td onload="MM_preloadImages('images/pic1.gif','images/pic2.gif')">
>
> I've always thought this code **usually** belongs <body> tag. I manually
> moved the code into the <body> tag, and reviewed my printed instructions

for
> inserting preload code. The instructions say:
>
> 1. Select an object and open the Behaviors panel.
> 2. Click the Plus (+) buttons and select Preload Images from the pop-up
> menu.
>
> etc..........
>
> So following #1 I selected an object, picture on the page in the WYSIWIG
> view, and I assume the <td> that contained the picture was where the

onload
> event was loaded..
>
> QUESTION:
> What should I have clicked on instead of the picture, or what did I
> (probably) do wrong?
>
> -George
>
>



Murray *TMM*

2004-04-21, 2:37 pm

This is only an operator bug.

George:

To apply the preload properly, you should have selected the <body> tag on
the TagSelector. When you selected the image, you told DW to apply the
preload to something other than the body (although it's surprising it
applied to the <td> and not the <img> tag.

Get to know the TagSelector. It is your friend!

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Terry" <terryuse@msn.com> wrote in message
news:c5inhf$t47$1@sparta.btinternet.com...
> Macromedia have released a bug fix for MX2004 which you can download from
> their site. It may not help this specific problem but it will certainly
> help with others. When we are new to something why do we always assume

that
> it must be us that is doing something wrong and not the software
> manufacturer?
>
> HTH
>
> "George" <geo@divergentweb.NO.SPAM.com> wrote in message
> news:j9-dnaCf0_WwHOHdRVn-gw@comcast.com...
<td>[color=darkred]
> for
> onload
>
>



Mick White

2004-04-21, 2:38 pm

It is a bug though. DW shouldn't allow you to apply its preload
behaviour to a <td> tag.
Mick

Murray *TMM* wrote:

> This is only an operator bug.
>
> George:
>
> To apply the preload properly, you should have selected the <body> tag on
> the TagSelector. When you selected the image, you told DW to apply the
> preload to something other than the body (although it's surprising it
> applied to the <td> and not the <img> tag.
>
> Get to know the TagSelector. It is your friend!
>

Murray *TMM*

2004-04-21, 2:38 pm

Absolutely not. And it doesn't. At least I cannot find a way to make it
happen - can you?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Mick White" <mwhite13@BOGUSrochester.rr.com> wrote in message
news:c5jfmn$sdd$2@forums.macromedia.com...[color=darkred]
> It is a bug though. DW shouldn't allow you to apply its preload
> behaviour to a <td> tag.
> Mick
>
> Murray *TMM* wrote:
>
on[color=darkred]


James Shook

2004-04-21, 2:38 pm

Murray *TMM* wrote:

> Absolutely not. And it doesn't. At least I cannot find a way to make it
> happen - can you?


In DW4: Click inside the cell. Highlight the <td> tag at the bottom of
the window. Apply behavior.

This appears to have been fixed in later versions.

--James M. Shook
http://www.jshook.com
Mick White

2004-04-21, 2:38 pm

I'll try.
Mick

Murray *TMM* wrote:

> Absolutely not. And it doesn't. At least I cannot find a way to make it
> happen - can you?
>

Murray *TMM*

2004-04-21, 2:38 pm

Ewww....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"James Shook" <jshook@dont_mail.com> wrote in message
news:c5jghf$bp$1@forums.macromedia.com...
> Murray *TMM* wrote:
>
it[color=darkred]
>
> In DW4: Click inside the cell. Highlight the <td> tag at the bottom of
> the window. Apply behavior.
>
> This appears to have been fixed in later versions.
>
> --James M. Shook
> http://www.jshook.com



Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews