I am interested in creating a tool for other webmasters to place on their website. Basically, I want it to be like a random quote generator, so that every time their page is viewed a random quote will be shown. I can do this using PHP and MySQL, but it works much better for using just on my own website than for providing to others. Does anyone know of a tutorial that can explain this process by using javascript?
I have about 13 ul li a items in a list and some have nested lists within them e.g. ul li ul li a and some don't. I want to prevent the default action on only a elements that have nested lists within them but not prevent default action for ones that don't. Here's an example of the markup.
[Code]...
However, instead, is there a way to tell jQuery to only apply this preventDefault to ul li a elements that have ul li a descendants/children (not sure of correct terminology here) so I can have the list items in any order?
I have my website getting a value as a result of an ajax call. After that, I would like to insert that result (a string) into a tag. However, I would like to insert that result in a way that (1) it must have opacity = 0, then (2) it will slideDown() so the whole content list being pushed down using animation, and finally (3) change opacity = 1. Imagine this is just like a Facebook message list insert process The way I am planning to do this is to return the result string from ajax to opacity=0 first. However, I don't know how to use jQuery to select a tag from within a string. I know jQuery only select from the DOM. So how to do this?
I have some auto-generated code in a similar format to this:
<li class="item"> <a class="link1" href="#">Post Title</a> Text I want to remove <div class="content">
[Code].....
I want to select the line of text ("Text I want to remove" - with no HTML tags around it) and hide it using CSS (or remove it all together, if I can). I have tried using insertAfter to put a start <span> tag at the start of the line, and insertBefore to close the </span> tag at the end of the line (so I can apply CSS display:none; to it), but clearly JQuery doesn't work like that.
Is there another way to get rid of this line of text?
I need to remove the checkbox and label when a checkbox is selected. For example: I check the checkbox "flashlight". --> The checkbox and the text "flashlight" slowly fade away
I'm trying to select a line a text and format it, only problem is there are no tags around it other than a closing </p> tag and a <br /> tag after it. Please see below the line in bold text which I'm trying to surround with <h3></h3> tags. [code]...
I need to create a mouseover image so when i hover my mouse over an image another image appears somewhere else on the webpage I do not want it to appear above the image hovered over like most code allows, i need a separate image to appear that is normally hidden.
So I decided to create a cool nav menu using <ul> tags and javascript. I input all the code but it is not doing what I want it to do. The menu is horizontal and consists of links in the following order: HOME, SITE SHOWCASE, FREE QUOTES, TESTEMONIALS. the java code has two graphics, on for mouse over and one for mouse out. For some reason the mouse over only works for the last item TESTIMONIALS and the mouse over image for testimonials shows up when my mouse is anywhere on the menu, not just that item![code]
I have a javascript that loads images on the page based on the date you select from a drop down menu. So the images are displayed dynamically, however they are numbered 1 through 20.Is there a way I can add a title tag to the images that will display on mouseover?Here's the page I am working on. I want to add title tags to the six images on the right side of the page. They change based on the date selected.
I'm using Mootools 1.2.0 and I'm trying to create a mouseover slide menu. That means that there will be a slideIn effect on menu-item's mouseover event. I have created a menu and I have achieved the sliding effect. The problem is that when I mouseover quickly on menu items, the slide in effect of each item doesn't have enough time to complete. In the end, there are more than one slides opening at once, instead of one. Is there someway to force my script to end all slidein or slideout effects before starting a new one?
Well after much trial and error I come asking for help. I am trying to write a greasemonkey script that scans a page for all the values between certain <td> tags. When I used firebug it shows what I am looking for as <td class="username">THEUSERNAME</td> but when I view the source it just shows up as <td>THEUSERNAME</td> I want to create an array of the 100 <td>'s on the page that pertain to usernames but none of the other <td>'s
I created a test page that mimicked the code, what I thought origionally, to be so I could test my script with ease. And it worked when there was an actually <td class="username">
This is what I have so far:
// ==UserScript== // //Displayable Name of your script // @name EXAMPLE
We have a list of items that each has a different quantity available. So I am going to create a multiple select menu, where they can select several different items. So, how can I make it that when they leave the field it sends all the different ones to the ajax program to build all the appropriate quantity forms?
The code below lays out 3 divs, the 1st. div contains a slideshow, the 2nd. div is a container for the 3rd div which contains buttons to override the slideshow and replace it with a new image in the slidshow div.
All the above scenario works perfectly.
Where I run into trouble is as follows: 1. When a button is hover, the image needs to change but I already have a onmouseover() function for each button 2. When the image changes, it need to have a href to example: file8.php to open in _self - I have 2 commented lines in my changeIt function to show the last things I tried. code...
I want to be able to select a word when I highlight over any part of the word. When I say select the word, I want it to be highlighted as if I left clicked my mouse and dragged the cursor along the word. I want to do this so a user when putting the mouse over the word can quickly hit <ctrl>c to copy the word, without having to manually highlight the word.
This will be used multiple times in the script for specific words, not for every word in the script. For example:
User Password ------- --------------- admin adminUser dba sysDbAPa$$
So in my above example when mousing over either of the passwords, the entire password would be highlighted so I can quickly copy it.
So ive got a fun page where I need to create the dropdowns based on anarray I pass into the html. (coming form php)However I cant figure out how to actually create a select box... I canhowever populate a select box that exists...Before Jquery does its stuff
<ul id="filter"></ul> So heres what I need the end to look like after jquery has run its stuff
I have several pages, all with multiple select boxes. Each select has a different name, but contains the same values (ok, not ok, fixed, needs fixing). I am trying to write a single script that will loop through each select box on the page, find all the 'not ok' values, then send the select box name, with the option value to a holding area (probably an array) which will be emailed to someone once all the pages have been entered by the user.
At this time, I am just trying to figure out the looping through one page of select boxes. The script is currently tied to an onclick event for the submit button.