![]() |
![]() |
||||||
|
|||||||
| Tags: asp, images, preload, recordset, region, repeat |
![]() |
|
|||
|
I need to insert recordset loop code (that generates the list of images to
preload) into the body onload tag. How is this done? BODY TAG CODE: <body onLoad="MM_preloadImages('')"> LOOP CODE: <% While ((Repeat1__numRows <> 0) AND (NOT images.EOF)) %> <img src="imagescript.asp?path=<%=(images.Fields.Item(" url_img").Value)%>&width=250" /> <% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 images.MoveNext() Wend %> |
| Sponsored Links |
|
|||
|
Do you really need this? Why? Usually you wouldn't preload anything but
image swaps - but anymore, I don't even do that (since I don't use many image swaps anymore). -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "aonefun" <webforumsuser@macromedia.com> wrote in message news:g652og$hbm$1@forums.macromedia.com... >I need to insert recordset loop code (that generates the list of images to > preload) into the body onload tag. How is this done? > > BODY TAG CODE: > > <body onLoad="MM_preloadImages('')"> > > LOOP CODE: > > <% > While ((Repeat1__numRows <> 0) AND (NOT images.EOF)) > %> > > <img > src="imagescript.asp?path=<%=(images.Fields.Item(" url_img").Value)%>&width=250" > /> > > <% > Repeat1__index=Repeat1__index+1 > Repeat1__numRows=Repeat1__numRows-1 > images.MoveNext() > Wend > %> > |
|
|||
|
thanks for your reply and no i am not looking for extra work. if an expert like
you doesn't see it necessary then forget it. However, there is some kind of image swapping going on as this is for a javascript thumbnail image gallery. Page example: http://www.canchair.com/new_web_prod...roductFamily=1 &ProductFamilySub=10 |
|
|||
|
The gallery is already built? Is that link to one of the pages you would be
working with? Here's the thing - on the example page, the incoming images are so tiny, I wouldn't worry about load time at all. How many images would you have to swap in on a page? -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "aonefun" <webforumsuser@macromedia.com> wrote in message news:g657hc$mfs$1@forums.macromedia.com... > thanks for your reply and no i am not looking for extra work. if an expert > like > you doesn't see it necessary then forget it. > > However, there is some kind of image swapping going on as this is for a > javascript thumbnail image gallery. > > Page example: > > > http://www.canchair.com/new_web_prod...roductFamily=1 > &ProductFamilySub=10 > |
|
|||
|
The "larger" images are ~3-5K each. I wouldn't even worry about it.
-- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "aonefun" <webforumsuser@macromedia.com> wrote in message news:g65a40$p74$1@forums.macromedia.com... > the page i linked to contains the images of discussion. The thumbnail > images onmouseover cause the larger image to change. It is the larger > image that concerns me. |
|
|||
|
thanks a million for your valuable advice.
Would you kindly provide input on my other post titled: "asp code does not render for first record in looped recordset" I am seriously stuck with this one and no one seems to know the answer! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise