|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
#1
|
|||
|
|||
|
1) Script Title: Ultimate Fade-in slideshow (v1.51)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nslideshow.htm I located here: http://www.dynamicdrive.com/forums/s...ad.php?t=10016 a php script written to grab all available photos in a directory. Thank you Twey! The following works perfectly. PHP Code:
PHP Code:
Thank you |
|
#2
|
||||
|
||||
|
PHP Code:
__________________
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989 The Testing Site | Atomic Yeti |
|
#3
|
|||
|
|||
|
Thank you for the fast reply thetestingsite
I used your code from $query on down, but the slideshow didn't appear. No php parse errors or anything so we are good there. I also double checked the database itself to make sure that update.php was working correctly to update the db and it was. Just to verify that all paths were correct and to try to narrow it down that it might be an issue with getpics.php I manually added the photos/links into the javascript... fadeimages[0]=["http://example.com/images/W013.jpg", "http://example.com/proddetail.php?prod=W013", ""] and that worked like it should. I am using full paths in the db like above with $id $image $link as the vars. I also tried a few other things but was unsuccessful. Any ideas? Thank you |
|
#4
|
||||
|
||||
|
Can you post a link to a test page with the code on it so that I can examine it further.
__________________
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989 The Testing Site | Atomic Yeti |
|
#5
|
|||
|
|||
|
|
|
#6
|
||||
|
||||
|
Apparently getpics.php is not returning any results. I'll look at the code again and see if I can see if I can find anything missing, but it may take a little while as I am still at work at the moment.
__________________
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989 The Testing Site | Atomic Yeti |
|
#7
|
|||
|
|||
|
No problem, I appreciate the help so far. I'll continue to look at things as well.
|
|
#8
|
|||
|
|||
|
The great thing about PHP is that most of the time there are multiple ways of doing things. I found a solution that may not be the best, but it seems to work with no lag time. Below is the code so if anyone else needs anything like this they can use it.
getpics.php (viewing it alone outputs all the items just like you would see if you added them in manually to your page. PHP Code:
<?php include("getpics.php"); ?> where your links are to appear. When you view the source it will look like you manually added everything in. If I get a chance I might try to go back to see if your original code does the same. I really appreciate the fast replies, and this seems like a great community! |
|
#9
|
||||
|
||||
|
Glad to see you found a solution, and thanks for posting it so that others may benefit from it.
__________________
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989 The Testing Site | Atomic Yeti |
|
#10
|
|||
|
|||
|
Quote:
PHP Code:
Code:
<script type="text/javascript"> <!-- var fadeimages=new Array() --> </script> <script src="getpics.php" type="text/javascript"></script> <script type="text/javascript"> <!-- var fadebgcolor="#9FCBF0" /*********************************************** * Ultimate Fade-In Slideshow (v1.51): © Dynamic Drive (http://www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for this script and 100s more. ***********************************************/ ////NO need to edit beyond here///////////// rest of code...
__________________
Upload, Resize and Insert with PHP Last edited by student101; 01-13-2009 at 07:50 AM. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|