I posted here a couple days ago and got help from a really nice forum member to get my script working. Now I'm a little embolden by the good experience and am trying to be a little more ambitious. As usual, I ran into a little brick wall on my own and need a shoutout for more help.
Here is what I have so far - a main panel where different image/texts are held in 'panel' div containers within another div container, under which is a nav bar consists of thumbnail images/links. Upon onclick on one of the thumbnail images, the 'panel' div containers are set to display:block or none, effectively 'switching' the panels.
Here is what I am trying to build on top of that - ability to set one of the panel div as 'display:block' at start (right now nothing show until one of the thumbnails is first clicked), and a mechanism to cycle through the different panels via a timer (interruptable via the onclick to show/hide command).
I have been trying to do some tooltips for a website and desperately wanted to learn something new and do that with jQuery.However, every time a mouse hovers over a tooltip, all hidden divs are shown, not just the one that supposed to. Here's my html:
I have a form that displays various hidden divs if a visitor checks a certain option in my form. For example, if they select Yes in a radio button a few more form fields will appear beneath it. It works fine except when the form is not filled out properly and the form is displayed again (using PHP). When the page reloads it doesn't show the hidden div unless they select No.
how to make it so if they select Yes, it will make the div appear again when the page reloads? Here's the code I'm using: Code:
I am trying to create a basic menu where if you put your mouse over a button you get a bit of descriptive text or an image appearing somewhere else on the page. I have tried to do this with hiding/revealing hidden divs - works fine with IE but no others.
I start with two visible divs and in between them are two more hidden ones...in Firefox this works fine--the two visible ones are right next to each other, the button fires the script and the other div shows up in the middle. Another button hides the div and the original two move back together without space between them.
However on IE the two visible divs are separated by the amount of whitespace that would be needed if the two hidden divs were actually visible. They show and hide correctly, but the whitespace remains. How can I fix this? Code:
I'm trying to add some js automation to a blogging application I've developed for a wysiwig site builder program. This program doesn't allow php or any kind of server scripting, so everything has to be done with js. The basic set up is that a user enters a blog post in the application and the code below appends a comments div (which are already on the page but hidden by css) to the post:
Instead of using this code for every post instance, I'd like to create a simple loop that will assign an incremental number to the post and comments id's when a new post appears in the page's html, and then append a comments div to the post. I tried a for routine that would add 1 to every post, but couldn't get it to work right.
I'm currently working on a page working with separate categories and a whole lotta check boxes. My objective is to have one checkbox deselect the other checkboxes in its category without interfering with the rest. How would I go about doing this assuming the id tag is already in use and differs per tag? I was thinking about cycling through all checkbox tags and sorting them out via class but I'm looking for something possibly more efficient.
Trying to learn the basics... Here is a script for three toggle buttons that each when clicked open their corresponding divs. Fine. Now how does one go about automatically closing an open div when clicking on a new 'toggler' that opens it's div? I see other posts about this very question, but I'm just not grasping the logic.
I have a series of images called shacam1, shacam2..... shacam(n) I want these to appear on my blog as if they were a feed from a webcam. I need a little piece of code to select a random image to start from and to then cycle through the images in order, refreshing every 5000ms.
What I'd like to do is set up a section of my page so that the content cycles through at regular intervals. The actual application in this case is to change a banner image, its alt text, and the page it links to.
So if I had 3 variations:
I've done a few web searches to see if I could find a script like this, but I mostly just came up with image rotation scripts. One of them provided a way to change the link as well, but it seemed that the link only changed on a click, so that (I believe) the status bar would show an incorrect destination when the banner was on any image but the first. None of the scripts I found would allow me to change the alt text as well.
Is there a way to have all three of these things cycle through simultaneously? Again, an ideal solution would allow me to cycle the entire section of HTML.
I'm having a bit of trouble with this script. I'm wondering if someone might help me. What I'm trying to do is to have a multiple image rollover whereby onmouseover, the image's source will cycle through a few pics and stop. I got this part to work fine--it's the onmouseout part that I'm having some difficulties with. I would like everything to be included within one function, instead of two (one for mouseover and one for mouseout). Here is what I have:
I have it working now, and I have but one question, does the code include a way to limit the number of times that it cycles through the slides? So it just freezes on one photo after x number of cycles?
There is a banner ad at the top of the index page called banner1.jpg. I need help with creating a cycling banner ad using 3 banner ad images (bannerad1.jpg, bannerad2.jpg and bannerad3.jpg). I also need to add a link to bannerad2 that will take the user to www.bigmtn.com and add a link to bannerad3 that will take the user to www.bridgerbowl.com.There are three navigational buttons located on the first page. Each of these has the word up incorporated in their image name. Each image has a corresponding down image with the word down incorporated in the image name. How do I create a rollover effect and a mouse down effect that will swap the up image with the down image?This is the code for the Index page - Index.html
I am trying to cycle through a set of tables within divs this works fine in firefox, but I cannot understand why it is not working in webkit broswers an example of what I'd like to cycle through:[code]do I need to somehow define that 'roundabound' id is what i'd like to cycle through?
Separately, they both work perfectly. The css-script for a beating heart does what it should do: feature a beating heart (or rather, image of a heart). The random background cycling script chooses a new background every 10 seconds.
However, put together, they still work, only every 10 seconds, the screen blinks black (the background cycler does not feature a transition on its own), both the background and the heart (and everything else on screen) blink out of existence for a split-second and then everything is back again.
I've managed to determine, despite knowing absolutely nothing about CSS and JS except for what little I've learned today through tinkering with the scripts, that if I remove the variable "infinite", the heart will beat only once after each transition and the blinking glitch will not occur, so it has something to do with that.
What I want is this: A heartbeat animation that's infinite with a background that cycles through a set number of backgrounds every X seconds without any kind of transitions or blinking effects.