Adobe Dreamweaver Forums



Last 10 THreads :         RoboHelp hanging (Last Post : shawntrident - Replies : 6 - Views : 7 )           »          RoboHelp & Knowledge Bases (Last Post : Captiv8r - Replies : 3 - Views : 4 )           »          Re: export image in D11 (Last Post : DAVID NAJAR - Replies : 1 - Views : 2 )           »          Cannot import audio into Captivate 3.0 (Last Post : ebowman77 - Replies : 2 - Views : 3 )           »          Dreamweaver MX vs Dreamweaver 4 (Last Post : bw75 - Replies : 0 - Views : 1 )           »          this will come in handy here. (Last Post : P@tty Ayers ~ACE - Replies : 9 - Views : 10 )           »          Seeking advise on flv in Captivate 3 (Last Post : 9060 - Replies : 0 - Views : 1 )           »          Global variables (Last Post : jfb00 - Replies : 0 - Views : 1 )           »          catching errors from remotely invoked processes (Last Post : Cr99 - Replies : 4 - Views : 5 )           »          Dreamweaver CS4 Beta Uninstaller? (Last Post : _Burn_ - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver Application Development
 
Tags: , , , , ,



Reply
  #1 (permalink)  
Old 07-22-2008, 06:17 PM
aonefun
 
Posts: n/a
Diggs:
Default preload images of a repeat region asp recordset

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
%>



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-22-2008, 07:15 PM
Murray *ACE*
 
Posts: n/a
Diggs:
Default Re: preload images of a repeat region asp recordset

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
> %>
>


Reply With Quote
  #3 (permalink)  
Old 07-22-2008, 07:15 PM
aonefun
 
Posts: n/a
Diggs:
Default Re: preload images of a repeat region asp recordset

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

Reply With Quote


  #4 (permalink)  
Old 07-22-2008, 07:50 PM
Murray *ACE*
 
Posts: n/a
Diggs:
Default Re: preload images of a repeat region asp recordset

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
>


Reply With Quote
  #5 (permalink)  
Old 07-22-2008, 08:04 PM
aonefun
 
Posts: n/a
Diggs:
Default Re: preload images of a repeat region asp recordset

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.
Reply With Quote
  #6 (permalink)  
Old 07-22-2008, 08:50 PM
Murray *ACE*
 
Posts: n/a
Diggs:
Default Re: preload images of a repeat region asp recordset

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.


Reply With Quote


  #7 (permalink)  
Old 07-22-2008, 09:35 PM
aonefun
 
Posts: n/a
Diggs:
Default Re: preload images of a repeat region asp recordset

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!

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 08:30 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk