You may need to explain yourself a lot clearer. What are you after getting from MySQL? What have you tried? How does the table look? Do you already have code for a connection?...
If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
The same applies to HTML and the forums [HTML][/HTML] tags.
You may need to explain yourself a lot clearer. What are you after getting from MySQL? What have you tried? How does the table look? Do you already have code for a connection?...
below is my complete code of javascript for a slide showeshow...
actually I am uploading the images in MySQL database. the below code creates a slideshow with images from database... this codes uses 6 images... which is static kind of slideshow. i want something where the user enter as many images as he wants and it will loop through the record set from the database... so the imagearray in the javascript i need from the database....
Code:
<script type="text/javascript">
var mygallery=new simpleGallery({
wrapperid: "simplegallery1", //ID of main gallery container,
dimensions: [427, 323], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
imagearray: [
["slideshow/1.jpg", "slide_files/links/1.php", "_new", ""],
["slideshow/2.jpg", "slide_files/links/2.php", "", ""],
["slideshow/3.jpg", "slide_files/links/3.php", "", ""],
["slideshow/4.jpg", "slide_files/links/4.php", "", ""],
["slideshow/5.jpg", "slide_files/links/5.php", "", ""],
["slideshow/6.jpg", "slide_files/links/6.php", "", ""]
],
autoplay: [true, 2500, 2], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 700, //transition duration (milliseconds)
oninit:function(){ //event that fires when gallery has initialized/ ready to run
//Keyword "this": references current gallery instance (ie: try this.navigate("play/pause"))
},
onslide:function(curslide, i){ //event that fires after each slide is shown
//Keyword "this": references current gallery instance
//curslide: returns DOM reference to current slide's DIV (ie: try alert(curslide.innerHTML)
//i: integer reflecting current image within collection being shown (0=1st image, 1=2nd etc)
}
})
</script>
Bookmarks