I am using a jquery gallery slideshow on my homepage and I am having an issue where the images loaded before the dom is loaded causing the images to display in an ugly stack.
I combated this a bit by setting a height on the div and setting the overflow to hidden. however you can still see the unstyled stack of images within the small div for a couple of seconds before the page is loaded.
Is there a way to load the entire page at once when all pictures are loaded? Is there a script for it or onload event that needs to be done or something?
I am looking for a upload form to upload pictures and then when the pictures are uploaded, then they get emailed to me. Kind of like a contact form but attached is the pictures.
I'm trying to use cluetip jquery plugin inside a message_container div which will be updated once in a while through ajax. The plugin works just fine in any other div, but it seems that in message_container div the already loaded external javascripts are not present ie the plugin doesn't work. Do you have any ideas what would be a proper solution for this issue?
I'm new at Javascript, and have written a script for a series of random roll-over button images, but one thing I would like to add is a function that checks to make sure that there are no duplicates in the randomly generated variables that choose the pictures.
Can anyone give me a hand with this? One other thing I can't seem to figure out is how to manage the "onLoad" aspect of caching my roll-over images (DW has locked the <body onload> function into a template, so I can't mess with it...). so my rollover graphics are grabbed from the server in "real time" during mouse-over, which is a bit "goofy" and "slow" in terms of instant rollover effect. I'm sure that there is a much more efficient way of doing this, but I've been able to learn a lot by tweaking DW's way of doing things, so it's not a total loss.
In an external JS file, I set up a series of 10 random variables using the Math.random and Math.round functions like so:
var btn0 = Math.random()*100; btn0 = Math.round(btn0); var btn1 = Math.random()*100; btn1 = Math.round(btn1); .... etc for 10 buttons
Then in my page, I piggy-back onto Dreamweaver's built-in roll-over handlers, like so (to write the instances of each rollover image);
For this particular page, I'm pretty much stuck with DW's coding because it's locked into a template that governs my site navigation. Thanks for any pointers or help ...
do ya know an efficient way to get the coordinates of a pictures so that I can use them to create a map? It is a rectangle. Here is the code I set up for a page:
<script type="text/javascript"> var picssigs = new Array("sigs/finished1.jpg","sigs/foghorn.jpg","sigs/motto.jpg","sigs/sig.jpg","sigs/SWAT.jpg","sigs/title.gif"); var pictsigs = Math.round(Math.random()*(picssigs.length-1)); for (var i=0; i<picssigs.length; i++) { var imgsigs = new Image(); imgsigs.src = picssigs[i];}
I wish to access several pictures on my page by defining them as an array. This way I can either loop through them or access them by array index.
What I am really doing is writing my own picture gallery and slide show. The reason I am doing this is so that I can have my web page look exactly the way I want. In addition, it is an excellent way to learn Javascript.
I just spent 3 hours analyzing tons of lightboxes, image galleries, jQuery plugins. Now I'm a bit frustrated.I don't want a snazzy animation effect.I don't want a pre-made layout.This is what I want:On page load, 12-15 bigger images are preloaded into browser cache.Div#container contains a default image.When user clicks a thumbnail link, the corresponding (bigger) preloaded image shows inside #container.
i have my folder with index page in named "tester_fixed.html" and then a folder for images where i have place header1 header 2 and header 3 . i downloaded a script from [URL] and edited my images in and i think i mucked up as they are not showing.
the code:
<script type="text/javascript"> // Flexible Image Slideshow- By JavaScriptKit.com (http://www.javascriptkit.com) // For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/
i look everywhere for html and Java snip its and all seem to be different, can somebody please tell me how to code something like this,also can the code be easy ish for example.if show is 5pm till 6pm an image appearsif show is 6pm till 7pm an image appears
Im trying to edit a homepage for a friend of mine. He wants the page to have a table of 12 total pictures that randomly rotate on refresh.i found this code that refreshes the pictures:
<script type="text/javascript"> <!-- var rand=Math.round(Math.random()*1);
I implemented the plugin of jquery.cycle.all.min.js as suggested in a previous thread by Sitepoint users but now it appears, I can't add more then 13 pictures to the gallery. The gallery works with over 13 pictures, but the prev/next buttons don't appear anymore and don't work. So I was wondering if anyone knows the explanation and solution for this?I rechecked everything and I've got it on multiple pages that over 13 pictures you can't press or see the next/prev buttons!
I want to know if how a javascript can recognize the name of a picture. Let say i have two pictures.
Picture A. name is "bubble.jpg" ...then Picture B. name is "duck.jpg"
When i hover the mouse using the onmouseover() function on one of the picture. The javascript should smart enough to recognize the name of the picture and display the name of that picture. Is this possible?
For this page here: [URL]. I have the following code for the photo gallery: var thumbProportion = .17 // thumbnails are 32% of their full size; var IE = false; if (navigator.appName == "Microsoft Internet Explorer"){IE = true;} function swapImg(nImg,nSwapImgClass,nFullSizeImg,nCaption){
var thumbImg = nImg; var thumbImgAlt = thumbImg.alt; var origFullWidth = nFullSizeImg.width; var origFullHeight = nFullSizeImg.height; ..... IE ? attachEvent('onload', init) : addEventListener('load', init, false); The pictures change fine, but I can't get the captions to change with them.
I have 4 pictures (Picture_1, Picture_2, Picture_3, Picture_4) and 2 buttons. I am trying to make it so that when you click the 'next picture' button it increments a variables andchanges the current picture to the next one ("Picture_" + CurrentPicture) I am aware that I would need to delete the current picture before creating the next one but I am unsure how to do this I use document.write("<img src = 'Picture_Example'>") to display my picture but if there is a better way Here's all my code:
<html> <head> <script language = "javascript" type = "text/javascript">
have been trying to get the rotating pictures to work. I am using dreamweaver 8. If I put one rotator on the page it works fine but when I add the second they both don't work. here is my page code
[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
this is the problem : The specific problem is that when you mouse over pictures i have a script to enlarge those pics, but my menu stays on top of those pictures! what do i need to do to fix this? If needed I will post the page html code...
I also have another problem which is with the flash movie on the home page which is only loading after i navigate way from the home page and then comeback to it...... Movie does not start on initial page load !