I'm normally over on the PHP board but this one is definitely a javascript issue. The thread title doesn't quite cover my issue, so I'll try to explain a little further.I built a website for a client who tells me that when he hovers over a word on his page it pops up a link to a competing site. I assured him that I didn't put the links in there, that it's a script or program running on his computer creating those links as he views the page.So my questions:
1. Is there a name for this evil? 'Popup spam ads' or something? 2. Anyone know of a way to build in javascript or any other method to stop this from happening to his site?
I'm trying to make a tool for my own personal use where I read values from a website with a login system (using cookies), then processing those values and displaying them to myself in a different format and with all the calculations I need.My plan was to open the external site in a frame and log in to the site, then use javascript to read the values and do the calculations. The problem is that I can't get the JS script to work with the frame. It won't read the values. Here is what I have for the reading script:
Code:
var price = document.frames['table3'].document.getElementById('p1').innerHTML; alert(price);
'table3' and 'p1' are the names used on the site I want the info from.
I have built a basic website that contains an iframe in the middle, called "iframe1". In this iframe I wish to load an external message board from proboards.com. In my code I can easily do this by making a button or hyper-link with the href="http:proboards.com/myforums" and the target="iframe1".When I do this it will load inside of it the iframe jsut as I want it to. However, my the problem is when you click on the button to login its coded to target "_top" and it opens on the entire page replacing the whole website. If i run firebug (a real time HTML editor). I can easily locate and change the link code to target="iframe1". But How can I write a script in javascript in my webpage code to do this as soon as the iframe has loaded the external messageboard?
I am currently getting a music blog started and have been given the opportunity to place an ad on my site. They company has given me the code for the Javascript ad, but when I put it in (at the top of my page) on my HTML/CSS sheet, it automatically aligns to the right. I really want it to align in the center. How do I get it to do this? I have tried typical align="center" methods but it looks like the Javascript requires a different type of coding and I am not familiar with it.
I'm looking for a jQuery code that will show a little mini screenshot of a website when you hover over an external link - been looking for a while with little joy.
I need to add a Javascript advertisement as a background (skin) to a Wordpress site. The background image is included in the CSS so how do I change this for a Javascript code
i want to add a part of the website that will be generated from mysql database from an external file just like php include just that i want these parts to update realtime without refreshing the browser. i also want it to have pagination.
I'm displaying ads on my website, but I would like to hide the script for, let's say 12 hours, after it has been clicked on it. I somehow managed to create something, but it's still not what I want. On refresh, the image is back. I know that i have to use jquery cookies, but i'm really new to jquery so I've got no clue how to set up the cookies into that script.
I'm trying to code a feature for my website using DHTML where the person viewing the website can rotate between viewing the positive/negative points of the website being reviewed. This example was in the publication called Using HTML 4 by Lee Anne Phillips. Code:
I have a ajax program on a page on website A. And I need to let it talk to a program on website B. I tried to put website B into the url of the parameter but it doesn't work.It gives me a "[objet XMLHttpRequest]" error.here is the code on website A:
//-----10% Off Coupon----- if (coupon=="N110"){ form.PRICE.value=-(moneyFormat(fTotal * .10)-1); form.ID_NUM.value="N110"; form.NAME.value=" Craft Month Promo 10% Off"; location.href=location.href; return true; }
I want to replace the .10 with an external peice of data, so users can change the amount with having to open the script. Sorta like those early marquees' where the marquee text was inserted from a text file.
I have a webpage with a form. Depending on user selections at the top of the page, the page will disable sections of the form. My plan is to put each section between a <div></div>. Each section contains some collection of form elements.
So if the user does not select some criteria, the related section of the form gets disabled. In a typical Windows type of application these elements get disabled and greyed out. What's the best way to do this in a webpage? Can Javascript determine what form elements are in a div section and disable these elements through a loop for example? I know I can disable each element if I know its it but is there a way to find out all the IDs of elements for some div section?
I am using the following code for disabling Ctrl-N in IE7. It disables the Ctrl-N feature of IE which opens a new window containing the same page as the 'active' window. The code works great (at first glance). However, I noticed that, if you click anywhere inside the browser window and THEN press Ctrl-N, the new window will open. If you don't click anywhere inside the window, the following code works. Can anyone see an improvement to the following code so that clicking inside the browser window doesn't bypass the javascript?
A form is up in the browser, user does what they need to do and hits "Submit". Being the patient soals that they are, they don't wait for the browser to refresh, but start entering more data / following links!
What I want to do is to disable all form elements and links when the user cliks "Submit". Anyone have some J-S to do this?
I saw quite a few scripts that allow the user to disable the right-click on certain components (usually images). This is what the code looked like (for IE);
function disableRightClick() { if (event.button == 2) { alert("Sorry, right-click is disabled"); return false; }}
Then call this function like so:
<a href="test.html" >
I would like to disable right-clicks without the annoying alert. I just don't want the menu to open when the user right-clicks the link. Is that possible? When I remove the call to alert, then the code has no effect.
I am opening one new window from the current window.... Can any one help me to disable the parent window after opening the new window.... and at the same time i want to enable the parent window after closing the new window.
I have a function which passes text from txtdebt to debtsbox which works fine. However, I want to add code which examines the value of debtsbox and if any of the values the user entered contain the string "d" then I want to emable rblDebts which is disabled when the page loads. This part is not working (no errors) and I'm not sure why.....
I want to disable the onclick for a <div>. In onclick I am using Spry.Effect.AppearFade(...). Any suggestions on how to disable onclick after the first initial click from the user?