Click here to Skip to main content
15,923,910 members
Home / Discussions / Web Development
   

Web Development

 
Generalmirroring sql server 2000 database Pin
Rajesh_K_Sharma25-Apr-05 2:58
Rajesh_K_Sharma25-Apr-05 2:58 
GeneralConfiguration Error - .NET, Web Pin
Pete Belcher25-Apr-05 0:53
Pete Belcher25-Apr-05 0:53 
GeneralRe: Configuration Error - .NET, Web Pin
Pete Belcher4-May-05 3:33
Pete Belcher4-May-05 3:33 
Generalpage cannot be displayed... Pin
Anonymous24-Apr-05 22:06
Anonymous24-Apr-05 22:06 
GeneralRe: page cannot be displayed... Pin
Noorl24-Apr-05 22:08
Noorl24-Apr-05 22:08 
GeneralRe: page cannot be displayed... Pin
Yulianto.24-Apr-05 22:47
Yulianto.24-Apr-05 22:47 
QuestionHow to access relational tables in asp.net Pin
Anonymous24-Apr-05 8:14
Anonymous24-Apr-05 8:14 
GeneralPreload Images with Javascript. Need Help. Thank You. Pin
shapper24-Apr-05 3:57
shapper24-Apr-05 3:57 
Hello,

I want to preload some images and I found a javascript function:

function preloadImages() {
var d=document; if(d.images){ if(!d.p) d.p=new Array();
var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
="" if="" (a[i].indexof("#")!="0){" d.p[j]="new" image;="" d.p[j++].src="a[i];}}
}

Usage:" <body="" onload="preloadImages('../images/design/image01.gif','../images/design/image02.gif')">

I wanted to add 2 features to this function:

1. When I send a URL all images should use that URL.
If I don't sent an URL then the image URL will be used.

Example 1:
preloadImages('.../images/design/', 'image01.gif',' 'image02.gif')

See? image01.gif and image02.gif are in '.../images/design/'

Example 2:
preloadImages('', '../images/design/image01.gif','../images/content/image02.gif')

In this case the full URL is withing the image string.

2. How cani test if the my function is working fine for each image?

I rarely work with javascript functions so some help would be really appreciated.

Thank You Very Much,
Miguel
Generaldynamic content according to date Pin
SouthernFried22-Apr-05 11:40
sussSouthernFried22-Apr-05 11:40 
Generalsharepoint login Pin
JKroschel22-Apr-05 7:28
JKroschel22-Apr-05 7:28 
Generalzbrowser size Pin
anj198322-Apr-05 4:48
anj198322-Apr-05 4:48 
Questionhow to add tooltip Pin
ganeshMohan22-Apr-05 4:41
ganeshMohan22-Apr-05 4:41 
GeneralForm question Pin
rleffew22-Apr-05 3:35
rleffew22-Apr-05 3:35 
GeneralASP.NET AND HEBREW RESULT ON GOOGLE.. Pin
bbbbxssasdsad20-Apr-05 19:43
bbbbxssasdsad20-Apr-05 19:43 
GeneralMIME types for Visio Pin
pankajdaga20-Apr-05 6:29
pankajdaga20-Apr-05 6:29 
Generalsome advice needed Pin
plork19-Apr-05 23:48
plork19-Apr-05 23:48 
QuestionHow can I copy the forms created using FormCreatorModule with DotNetNuke Pin
Rahul_P_Menon19-Apr-05 19:33
sussRahul_P_Menon19-Apr-05 19:33 
GeneralSending mail thro' SMTP Server using Java Script Pin
pavanbhai18-Apr-05 20:54
pavanbhai18-Apr-05 20:54 
GeneralRe: Sending mail thro' SMTP Server using Java Script Pin
JKroschel22-Apr-05 10:45
JKroschel22-Apr-05 10:45 
GeneralIIS problem Pin
Liborac_18-Apr-05 9:39
Liborac_18-Apr-05 9:39 
GeneralRe: IIS problem Pin
dratcha18-Apr-05 14:03
dratcha18-Apr-05 14:03 
GeneralRe: IIS problem Pin
Liborac_18-Apr-05 21:46
Liborac_18-Apr-05 21:46 
GeneralRe: IIS problem Pin
dratcha19-Apr-05 7:06
dratcha19-Apr-05 7:06 
GeneralRe: IIS problem Pin
WoutL19-Apr-05 21:23
WoutL19-Apr-05 21:23 
QuestionWeb service toolkit for VS6.0? Pin
anderslundsgard18-Apr-05 9:11
anderslundsgard18-Apr-05 9:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.