Mysterious Code Appears In Web Pages.
Jul 20, 2005
All of a sudden the below javascript code appears on many of my web
pages. No one else sees it from their browser. I only see it in IE and
Netscape by looking at the source code. When I download the file to my
hard drive the code vanishes. It appears only when I look at it online
from my browsers. Any ideas? Code:
View 1 Replies
ADVERTISEMENT
Sep 27, 2009
I coded the following JavaScript:
var el = document.createElement("iframe");
el.setAttribute('id', 'ifrm');
document.body.appendChild(el);
el.setAttribute('height', 250);
[Code].....
And am putting it between <script type="text/javascript"> and </script> tags in the <body> section of my site. But, it only works in certain areas of the page.
View 6 Replies
View Related
May 28, 2010
how do i get it/what is the source code so when one java pop up appears when my page is visited another one appears over the top of it like in windows when they is 2 boxes but one overlaps the other one
View 1 Replies
View Related
Oct 5, 2005
We require the ability to be able to inject code into all pages that
people view. There are a number of requirements. I am hoping there
might be a catch all that will allow us to do what we need.
Firstly once people load up IE. I would like a banner to be displayed
at the top of ie reminding people of internet use guidelines. I would
like this to be visable at all times on all pages.
The second part is that I would like to inject code into all pages that
have shockwave. The injection of code would either hide or show flash
but in a PAUSED static state (ie no motion)
Not being a firefox guru, I understand that this is the kind of thing
people are doing with Monkeyscripts. However as a corp I cannot get
away from using IE because of the services we use.
View 2 Replies
View Related
Mar 5, 2010
So today I have discovered some malicious JavaScript code inserted into a bunch of my pages on a webserver. Access to these pages through FTP is granted to 3 people, myself, my boss, and a contract programmer. Unfortunately, the FTP server wasn't set to log, so I can't tell for sure if it was the programmer, but my assumption and suspicion is that it was him.
This code was inserted at the bottom of multiple pages. I can't make heads or tails of it, but it cannot be good, whatever it is. When I view the page that it was on, I noticed the web browser connecting to [url]. Browsing to this page takes you to some foreign hosting site. Googling superseasilver.ru only provides a page that has this address listed in a blacklist.
Code below:
View 9 Replies
View Related
Sep 9, 2011
Basically what I need to do is cause a bit of HTML to only display on a specific page. I have figured out how to do most of the work i.e. figuring out what page that the code is being displayed on, etc. However, for some reason the DOM element that I am using will not update based on the Javascript.
Here is the version of the code that I am currently working on:
<html>
<head>
<script type="text/javascript">
window.onload = function DisplayButton() {
var DesiredPage = 'Page to Display';
//Page that I want the code to display on
var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
//This determines and places in a variable what page that the code will be on
if (sPage == DesiredPage) {
document.getElementById('HiddenCode').style.display = "block";
}}
</script>
<p Id="HiddenCode" style="display:none">Code only to be displayed on indicated page</p>
</head>
</html>
View 7 Replies
View Related
Aug 15, 2010
The thing is that I would like to stop pop-over (optin form) from loading on some pages (squeeze page,review pages etc.) and can't find a way to do that. We are talking about wordpress blog here... Is there a some kind of script or code I can use? Should be, it's not a rocket science. Just want to kill the process on some pages...I'm using popup domination [URL].
View 4 Replies
View Related
Dec 3, 2010
I have this snippet of code which sends alright the ID to a page called SendIdToDatabase.php . I need to send that also, and simultaenously to another page called SubmitForm.php but I am not sure where to insert it in this code
<script
type
=
"text/javascript"
[Code].....
and then underneath the other one something like
function YetAnotherFunction(str) {
$("submitForm.php").html(str);
}
View 2 Replies
View Related
Dec 9, 2005
I need a JavaScript code to load pages into another frame. The thing is, I want to control the pages that are loaded using an external javascript (.js) file.
View 7 Replies
View Related
Jan 14, 2012
We have an Ajax error callback that notifies the user that something went wrong. The ajax call takes some time, and sometimes the user navigates away while the ajax is in progress.
That causes the error callback to be fired. However, in the error callback I can't seem to detect that the reason for the error is that the page is unloading so as to distinguish this from other errors. In the callback, this is true: (textStatus === "error" && errorThrown === "" && jqXHR['status'] === 0 && jqXHR['statusText'] === "error").
[Code]...
View 5 Replies
View Related
Jul 19, 2011
How to link two html pages? If we use <a> then what do wr give value to href?
View 3 Replies
View Related
Nov 24, 2011
I have a problem with my confirmation box. The problem is that when I click on a button, it will display the confirmation box, if I click OK then it will close the confirmation box and quickly open up the same confirmation box asking the same thing, if I click OK again then it submits the form. It does the same for Cancel where if I click Cancel for first time then confirmation box closes and reappears again asking to confirm again, if I click Cancel again then it closes the confirmation box.
It gets worse, if I click OK for the first confirmation for example then click Cancel for second confirmation, then it will show third confirmation and if I click OK then 4th confirmation box will appear after third one closes and etc.
I obviously want Confirmation box to appear once and if user Clicks OK, then submit form else close confirmation box. So what I want to know is why is it doing this. I have no errors in error console and I can't really see problem with my code:
Below is Code: (I included all relevant functions so you understand what each function does)
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Create a Session</title>
<script type="text/javascript">
function validation() {
[Code].....
View 2 Replies
View Related
Oct 14, 2005
i have the following phone book which i would like to implement a few extra jscript functions I would like 1. When a user clicks the checkbox the value appears in the textfield and is written to the page.
"1 recepient added"
2. When a user checks a 2nd option, the value is added to the textfield seperated by a comma
And a value written
"2 recepient(s) added"
based on the total
Any assistance ? Code:
View 5 Replies
View Related
Jun 11, 2009
I'm looking for a script that once someone clicks a certain link, it will disappear and then reappear every 24 hours. Cookies may have to be set for this.
View 7 Replies
View Related
Aug 18, 2010
Basically I want a right and down arrow to appear depending on whether a div appears. If the header div is clicked, the subdiv's display toggles block or none. At the same time id like the arror img to change accordingly.
This is my current function, it works fine
I've tried many times to add a script that'll change the src but no luck at all..
The image name is simply arror$categoryId...By the way, the reason for the '. .' etc is because this is printed via php.
View 12 Replies
View Related
Aug 4, 2011
On my website I want a centered popup where you can fill in a webform. Ofcourse I want to use a table for it so it can have a nice layout.
However when I use a "div" which I can show or hide via a Javascript (showhide) and I put a table in that div, then the webform in that table is already show on the upper left side of my website. If I click the link to show the div, only a blank div will appear in the center of my screen.
This is the code I used:
<script type="text/javascript">
function showhide(id) {
if (document.getElementById(id).style.display == 'block')
{
[Code]....
In this case the word "TEST" will appear in the upperleft of my screen while the div is hidden. If I click the link, a blank div will appear in the center of the screen.
If I don't use a table, bu only the word "TEST", then all works fine like it supposed to be.
So I guess the issue is the <table>-function?
View 1 Replies
View Related
May 30, 2010
In this tutorial: [URL] The variable FadeTimeLeft is part of an expression assigned to the FadeTimeLeft property of the element object: Code: element.FadeTimeLeft = TimeToFade - element.FadeTimeLeft; Yet I looked through this code and I don't see it defined anywhere so I have no idea what value it holds.
View 2 Replies
View Related
May 4, 2006
can anyone tell me why an additional blankspace appears for a dropdown
menu when using netscape6.1? this works fine for IE.
View 1 Replies
View Related
Apr 28, 2010
The listnav count is getting an inline style of position: absolute and top: 0, sending it to the top of the page. I can add 83 pxls to the top attribute to get it to drop down to where I need it but I cannot find where to edit the inline style attribute of <div class="In-letter-count" style="display:none;position:absolute;top:83;left:805px;wisth:21px;"
How can I edit this attribute or Is there a better way to position this?
View 2 Replies
View Related
Oct 5, 2010
My background is php and I am now branching into jQuery. I have the following code set to update a <div> on a page. How would I modify this to add an effect (such as a fade-in) when the new content appears?
Code:
var refreshId = setInterval(function() {
$("#responsecontainer").load('showcontent.php?randval='+ Math.random());
}, 5000);
View 1 Replies
View Related
Aug 28, 2009
[URL]
allows you to type into the text box and using ajax query the database for relevant movies or whatever.
upon clicking the movie choice another text box appears unless you click on the Next button.
Not sure how to do this, is this done with DOM or a blur event or what?
looking for a push in the right direction to emulate this.
View 3 Replies
View Related
Jan 15, 2011
I have a PHP file that pulls down data from a MySQL database, filtered based on a tag ID. That data is then returned using PHP's json_encode function to the client where it is translated back using JSON's JSON.parse function. Seems to work absolutely great! Except... it seems to reorder my object completely by itself...
Here's an example:
When my query ends with ORDER BY posts.postid ASC, I get the following JSON:
Code:
{"type":"tags_posts","tagname":"json sort test","posts":{"100":{"reltags":{"201":"json sort test"},"subject":"JSON Sort Test 1","message":"JSON Sort Test 1","posteddatetime":"2011-01-15 07:25:34","authorid":"1","authorname":"azcn2503","commentscount":0,"postedip":"193.132.232.210","postedipgeo":"GB"},"101":{"reltags":{"202":"json sort
[Code]....
As you can see, it has been reordered somehow and looks exactly the same as when it is ordered ASC.
Is there something in the JSON file that I just can't see? I've been coding for a while now and could be going blind...
View 3 Replies
View Related
Jul 8, 2010
I'm trying to write a macro, but I'm lost. So say if I have an array of keywords to check for on a web page,
var keywords=new Array();
keywords[0]="You are a cat";
keywords[1]="Are you a robot";
keywords[2]="Have a good summer";
How would I make a function that checks the currently opened web page for one of the specific keywords. And if that keyword is found, then execute some action - and if not, then execute some other action?
View 8 Replies
View Related
Sep 17, 2011
I have an alert message just like
alert("Hiii");
I want to close it automatically as soon as it appears. It means I don't want to show this alert message to client.
View 7 Replies
View Related
Feb 28, 2005
I have an online web2phone sms phone book, with a list of users phone numbers.
Now when users want to send sms, they select from the multiple options, which is gotten from the databse with their phone numbers. I would want the value of the check boxes to appear in the text field area sepearted by commas. PLEASE NOTE;
1. The values of the checkboxes are dynamic and picked from the databse
2. The value to appear in the textfield area are the phone numbers and should be sepearted by commas Can anyone assist me ? Code:
View 4 Replies
View Related
Jan 19, 2010
I have created a script that checks through fields in a cmc and finds any opening and closing divs. What i want to do it count the number of times the opening/closing div appears in a field.
Code:
ISite[] oSites = ms.getAvailableSites( ctx );
IType[] oSiteTypes = oSites[0].getTypes();
String[] aFields = null;
[Code]....
View 1 Replies
View Related