Edit CSS From External Code?
Jan 18, 2010
I'm wrestling with this bit of code that almost works but does not. I'm only guess is that I need to find a way to edit the actual CSS document from the outside... which I'm assuming isn't possible. Is it? I've got a basic CSS Rollover effect going on. The kind that changes the background-position on hover. However I've defined the actual background image with PHP (a custom field in Wordpress) as a style="..." in the <a> tag. When I define the background-image in the CSS it works! When I define the background-image as a style="..." it does not work. Can I use javascript or something to edit the actual CSS document?
View 5 Replies
ADVERTISEMENT
Nov 12, 2011
I'm working on my personal website [URL] and I'm trying to use Javascript to edit some of the height and size attributes of elements on the page, based on the user's window size. I've got the code that gets the window size working, and calculates what I want to set as the "boxSize" but the part that goes into the external CSS to change the values is not working. "boxSize" is a variable that holds just a number. I'm not sure if it's really stored as a number or a string, but I don't think that's supposed to affect anything.
I'm just putting in the relevant part of the code right where it's failing. I figured out (using alert() statements) that the script is definitely working right up until before the two lines given, and failing to get through them.
[Code]...
View 3 Replies
View Related
Apr 27, 2011
I have this scroll to top code, but to edit the problem is that I will not see this eksamplen the page evry time, would like to reach all the way down on the side to be displayed. Here is Scroll to Top code:
[Code]...
View 3 Replies
View Related
Nov 16, 2011
Is anyone aware of a website which me and a friend can simultaneously edit code together? Much like google docs, but for code?
View 2 Replies
View Related
Jan 6, 2011
I am trying to hide this code:
HTML Code:
using this code
HTML Code:
This works fine when I place this code under the html in the main source, but if I try to add this Jquery code to an external js sheet it doesnt seem to work?
Currently my js sheet is called in the header, when I move this link to the footer of my page the code works again, so Im guessing this has something to do with where the jquery code is placed in relation to the code Im trying to hide?
How I can keep my js in the header but still make the content disappear on click?
View 2 Replies
View Related
Apr 26, 2011
I have been given a piece of code that validates passwords, but need to edit the code with correct variable names and indentations etc.
Here is the original code:
What the variables n1 and n2 are/ what they do?
View 3 Replies
View Related
Jun 6, 2009
i want to ask that is it possible that using javascript injection the contents of a web page can be altered (add / edit / deleted) in Line of Code.Since, this has happened with me couple of times,talking to the support team at my hosting provider, they say that its due to the security holes in the Coding, but i think that its the security issue at the hosting side (since modifying the web pages code)i've found this code immediately after the opening of the body tagearlier the page snoofing for the above URL was working, but now its not producing the output. (so can not post whats inside it).My Another website (hosted by the same provider) is also infected. there the code immediately after the body tag is again the page snoofing yeilds no output with the error
View 6 Replies
View Related
May 20, 2009
i have a .js file .can i use php code in external js file.
if yes how we can.
View 1 Replies
View Related
Oct 26, 2011
I have some HTML that I want to put in a Javascript file and reference the HTML through external Javascript file.
So I have my page,
example.html
<html>
<head></head>
<body>
<script type="text/javascript src="../js/external.js"> </script>
[Code]....
The above code is all on one line, but is not displaying on the page. PHP is out of the question too (_._)
View 2 Replies
View Related
Sep 2, 2009
I have a file links .js. In it i have this code
Javascript Document
On another page, hazards.html i use this code to call that function
But it doesnt display, nothing does. What am i doing wrong?
View 1 Replies
View Related
Jul 23, 2005
Is there any way to embed the included code snippet in a function (in the case where it is not already a function in the remote souce file)?
View 8 Replies
View Related
Nov 23, 2009
I currently have this pop-under JavaScript code that basically loads a pop-under upon page load,Is there a JavaScript code that executes both codes above, from an external website, and runs every time the page is loaded?
View 5 Replies
View Related
Jan 17, 2009
I want to give a code snippet to partnering websites, so that the script on their page draws from a page on my server. I think "quote of the day" type widgets use this.I copied this code from a site and it works for them, but when I switch the url to a php page (containing only text wrapped in a div) on my site, it doesn't work. I realize this might also be a php question, but I didn't want to cross-post. Does it have something to do with the "jscript=1" variable being passed?
View 2 Replies
View Related
Jun 5, 2009
Website for a external search engine for your website, or give me a HTML code or CSS code?
View 1 Replies
View Related
Feb 8, 2011
I am trying to update the contact in this code using an external js file and targeting the "Contact me" node using the DOM: (see my js attempt below.):
<div id="navMain">
<ol>
<li><a href="/">Hey Brian?</a>||</li>[code]......
external js: (as you can see, I can't even get the alert to work, so I am having trouble traversing the DOM.) Eventually, what I'd like is the js file to setAttribute of the <a href> to my current email.
// contact me email
var getnavmain = document.getElementById("navMain").getElementsByTagName("ul");
var emailtarget = getnavmain.getElementsByTagNames('li')[0].innerHTML;
alert(emailtarget);
View 3 Replies
View Related
Nov 9, 2011
Can you place java code in an external javascript file (.js).
For example can I do the following in my xx.js file.
Can I do the above?
Another question ...I know <% %> is to execute java code inside html. But what does <%-- - -%> mean?
View 3 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
May 8, 2010
View source code of external files in html like *.js and *.css
For example:
In this page I am Posting to, there are 24 *.js files. They are loaded but you can't see them. I would like to view some of these external javascript files for study. Not necessarily on this site, but where ever I find them.
View 1 Replies
View Related
Aug 2, 2011
I have some code that works great when used inline (inside of an html page). The inline code looks like this and has an onchange = "gotoTest(this);" as part of the select element
<script type="text/javascript">
$(document).ready(function () {
$("select#RU").bind("change", gotoTest);
[code].....
View 6 Replies
View Related
Mar 16, 2011
I have the following code to load an external page into a "holder" div on my main site. It works fine in Firefox but when a user views it in Internet Explorer 7 it seems to hang for a minute or two and then starts to work normally. Also when someone resizes the browser window the site seems to hang again. Is there something wrong with the code below or is it just the limitations of jquery/javascript in Internet Explorer?
The basket.cfm loads content from a database and the loadMyBasket function is called when a user clicks a link on a different part of the site.
The code above gets loaded automatically when the site first loads and also gets called when the user clicks a link to update the basket.
View 1 Replies
View Related
Mar 8, 2011
//-----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.
View 3 Replies
View Related
May 8, 2007
Can somebody tell me how I would go about allowing the user
to click on a link to put content in text box A and then another
link to put different content in text box A and so on. Finally,
when onsubmit is fired, all the content created for each individual
link (using the same text box) is sent to SQL Server.
How do I reuse the same text box in this manner?
View 7 Replies
View Related
Jul 20, 2005
Is there a way to edit an XML file with Javascript only?
View 2 Replies
View Related
Jan 6, 2011
i was wondering what is the best method to edit the content from a tab, widget, div, etc...ill take some examples, if any exis
View 2 Replies
View Related
Nov 6, 2009
I want to change which videos I have on [url]. For the speeches video there is [url]which contains only references to speeches.swf.. not speeches.flv which is the video file itself.
I have created new flv's of the same dimensions as the existing ones, but do not know how to edit an swf as to which flv it points to...
View 1 Replies
View Related
Feb 5, 2011
Is there any way that I can have multiple textboxes where the user can enter text (such as "black or green") and it would edit a css file, like this:
<style>
body{
background-color:INPUT;
}
</style>
<input type="text" name="bg"/>
?
View 1 Replies
View Related