473,382 Members | 1,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Received error: function is not defined for js slideshow script

Expand|Select|Wrap|Line Numbers
  1. if (picImages == "049")
  2.         document.images[0].src = "044.jpg";
  3.         picImages = "044"
  4. }
  5.     else if   {
  6.         document.images[1].src = "049.jpeg";
  7.         picImages = "049";
  8. }
  9.     else if  {
  10.         document.images[2].src = "071.jpeg";
  11.         picImages = "071";
  12.     }    
  13.     else if  {
  14.         document.images[3].src = "895.jpeg";
  15.         picImages = "895";
  16. }
  17.  
  18. /*]]> */
  19. </script> 
  20. </head>
  21.  
  22. <body onload="var changeImages=setInterval('childPics()',2000);">
  23. <p>img src="044.jpeg" name="images" width="400" height="400" alt= "Toddler gazing" /></p>
  24. <p>img src="049.jpeg" name="images" width="400" height="400" alt= "Toddler with parent at carnival" /></p>
Oct 21 '10 #1
1 1322
Dormilich
8,658 Expert Mod 8TB
with the code you posted, nothing hints that the function exists.

besides, an if statement (lines #5, #9, #13) requires a condition, failing that throws an error which causes the function to not be recognised.
Oct 22 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: rashmi | last post by:
how to use static function defined in one file in another file is that impposiible in 'c '
12
by: jeniffer | last post by:
Can a static function defined in a C file be ever referred (called) externally from another C file?If so in which conditions?
19
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function myFunc(val1ok, val2ok) ' do something ok myFunc = " return something ok" End Function </script>
3
by: blakerrr | last post by:
Hi everyone, I am trying to export a table to an excel file using vba on a form's button click event. I am getting the error: Compile error: User-defined type not defined. And it highlights...
4
by: hung52 | last post by:
Hi experts, I try to send a mail with attachment using cdosys.dll. Dim iCfg As CDO.Configuration Dim iMsg As CDO.Message Set iCfg = New CDO.Configuration ... the compile got error...
4
by: nani2717 | last post by:
HI ALL, I m currenly working with a visual basic 6 project.i m new to VB.wen i tried to comile a file i got the error "user defined type not defined".i don know wat appropriate reference to add.i m...
2
by: LeoK | last post by:
After finally completing my database I was ready to transfer it to our client, but when the access database was opened, everything works great, except for the SEND_EMAIL part, whenever any code that...
22
by: thekingsnake | last post by:
After following the instructions from the answer below: http://bytes.com/topic/javascript/answers/153274-script-iframe-can-not-call-functions-defined-parent-document I was able to have the...
6
by: travjbad1 | last post by:
I am new to the forum and new to Access, so please be simple and descriptive if possible. I am having a problem with a button on a form that saves, opens a report in pdf, and emails the report to the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.