I have a site where I want to show a html code if the the url is www.tld.com/pris/*anythinghere* but not if the url is TLD Information Technology specialists without anything more. Example: I go to CNN.com - Breaking News, U.S., World, Weather, Entertainment & Video News -> nothing shows, then I move on to[url].....the html code shows.I know how to do this with php but I have to use javascript here.
[URL] have written some javasript code to play an animation with sound and all paths should be working yet nothing is displayed...chrome/ff4/ie8 wont show any anything.
I have an iFrame on which I wish to display scrollbars ONLY when the mouse is over the iFrame AND the source of the iFrame is larger than the iFrame can display I am using the following code for the iFrame but believe that I need to add some script to make it work:
I'm setting up an application that involves blog posts with comments boxes appended to the div that contains the posts. The comments boxes are in iframes and load an html file on the same domain. There are multiple posts/boxes on each page. I need a javascript that will only run the append script when the posts are written and appear on the page. So in non js language, I'm looking for this:
if div id post#5 appears on the page, show the iframe that contains the comments box that goes with post number 5. else don't show it.
There are various widgets and plugins that show link preview via tooltip or iframe,So as I am trying to continuously improve web sites experience with new trends and web functionalities - thus it come the task for uniform link preview via div and iframe.
I am trying to get the url parts using javascript my url looks like this [URL]I need to get the "Home" piece of the url I tried window.location.pathname but it only returns /
I have an iframe and I want to display a loading animation to the user until the iframe is fully loaded, this is want I did:
1. I start the iframe with style:display:none 2. I have a div that wraps the iframe 3. When the iframe is fully loaded a method is called from the iframe 'removeDivs', I change the div to be invisble with style:display:none and I set the iframe to be visible with stle:display:"" 4. The problem: Because the div wraps the iframe, after changing the style of the iframe its stay invisible, the property I set doesn't affect.
I have created a page which pulls search results from various sites using PHP. It displays each result in a row in a table upon running.
I wanted to add a button saying "More information" at which point, a div would appear and load the associated link for that search result within an iframe within the newly appeared div. I've been able to get a div appear and disappear on button click but, I couldn't get it to dynamically load an iframe on click with the associated search results link.
I need to make script which takes from one field string(numbers separated by space copied from excel) divide it by space into variables and insert into another fields on this page. <textarea name="receiver1" id="receiver1">
I want to hide certain parts of my website by using JavaScript! The small image or a window should appear and cover things up.
This is an example of the window I had in mind: link [URL]). Anyway, I'm new to all this JavaScript business and I don't know how to customize these things. So if anyone has done such things before or knows how to do it
This window widget should have the following characteristics:
- it should stay still where I put it - it shouldn’t move when you scroll down the page (here is a good example [URL]
- website visitors shouldn't be able to move it
- it shouldn't have visible boarders and X button, just background color
I have two divs in my form that contain slightly different fields. The user can view one vid at a time depending on the radio button it's checked (either business or individual). When I submit the form, all the fields in both divs are submitted and emailed at the same time. I need to submit the div that is visible and has the user info only. How can I accomplish it?
javascript file: //collects the data and erases the form function submitForm() { document.getElementById('apply').submit();
I am working on a website which has a large image slideshow on top, with the logo. The content articles are in separate HTML files, and are embedded in the main document with a simple PHP include function.
The problem is that clicking on a link causes a refresh of the whole site, the gallery resets to the first image, and there's a momentary flashing of the screen.
I would like to explore the options of having only the main section update (somehow) when the user browses the site, leaving the rest intact, on screen.
I am worried about these potential issues:
- Will it be Search Engine friendly? (i.e. finding and indexing the separate articles)
- The vertical size of the site expands depending on the length of the content. Will this partial refresh be compatible with this?
I have an HTML select list that is populated when a user click on radio buttons.
That part seem to be working fine.
The problem is, I also need a message to appear in a textfield which is in another form. So say when a user click checkbox 1, some text are displayed in a textfield. Example: You click checkbox 1.
What is the easiest way to print only parts of a page. I have a mail order page that lists the products ordered and the customers information, plus buttons and instructions. I all the info is correct I want the user to press a print button, but only want the items ordered and cust info to print, none of the buttons or instructions.
I read that I can use a hidden frame and print this frame but wanted to avoid frames. Is there another way?
I am trying to use the MooTools Tooltip and with the Title I saw that it can remove part of the URL. I was wondering if there is a way to remove more from it. URL: http:[url].....Right now I have it so that http[url]....is replaced by Article: Is there a way to also make the &p=123 removed from displaying? The only part that really changes in the URL is the 1109
PHP Code:
var Tips = new Class({ options: { onShow: function(tip){[code]......
I wanted to download selected parts of text from list like showed here: But I want to take only nick and last points. And later I will put result in table. This text repeating to id 100 or more.
1 - id nick - need it [tag] 2002 - points 647 - points 489 - points 2 - points 3138 - points - need it 2 - id nick [tag] 2393 - points 270 - points 335 - points 3 - points 2998 - points
I'm creating the backend part of a slideshow of pictures. It initially has no slide, and the form has to display just the group of fields for one slide.
There is a select field for "number of slides" with an onchange handler, which depending on its value, will display more groups of fields, for other slides, or remove the remaining ones. So I want to copy an original group and append it to the container.
The problem is that all the fields have an index, in order to identify which slide they belong to.
I am looking to implement javascript to do the following: I have a checkbox that I would like to control the a entire form below it. The form would be made up of several tables, text and radio fields etc. I have tried using various solutions, but only seem to get small parts to hide and not the entire tables. So for example, I am looking for something that would work like this:
I have list price and sale price like above. What I am trying to do is to compare list price and sale price; if sale price is lower than list price then display it as Was: $34.00 Now: $30.00 If both are same, then just hide the List Price. I am not sure how to get the numbers and compare; Honestly i am not sure where to start; i started like: alert ($(".uc-price-list").text()); but it is displaying inner spans; .val() displays empty string.
i saw this nice image fades on the nivo slider >>how are these part transparent tile-fades made?and is it possible to cut out a transparent static part from a JPG with jQuery?(like a rectangle part on the JPG is transparent made with jQuery)
I am using the vertical scrollable by Flowplayer. There is one aspect of the set-up I can't get to work.
I have Scrollable working on a dynamically generated category list in Wordpress. There could be as many as 15 items in the list, but I only want to display five at a time. In order for Scrollable to work properly, each batch of five list items needs to be wrapped in a div (see example below). I'm pretty sure this is something I should be able to do in jQuery, but can't figure out how to do it.
Ideally, it should also work if there are only 12 items in the list by ignoring the missing three to make a multiple of five.
I am sending out a small email blast to my clients. I would like to offer them a free download of a report, but I don't want to have them re-fill all of their information. Therefore ,bit of code that will parse the URL and place the separated items into the form fields. Then they can hit submit and be done.[url]...