I am writing a regex find/replace that will insert a <span> into every <a href> in a file where a <span> does not already exist. It will allow other tags to be in the <a href> like <img>, <b>, etc.
Currently I have this regex:
Find: (<a[^>]+?style=".*?color:#(\w{6}).*?".*?>)(.+?)(<\/a>)
Replace: '$1<span style="color:#$2;">$3</span>$4'
...
I am putting a google map on my web site and I wanted to add points to the map but I am not sure how to do it. I have tried a few different things but they did not work. Here is what I have so far:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://ww...
I use validateEngine (http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/) to make sure the user fills in the appropriate fields before the form submits.
What I am having a problem is when the user hits submit without filling in all the appropriate fields, it does not submit the form, alert...
I have a div I want to hide when I press F2... Everything works fine, except when the focus is on an iframe below this div...
<script>
document.onkeyup = KeyCheck;
function KeyCheck(){
var KeyID = event.keyCode;
switch(KeyID)
{ case 113:
document.getElementById("test").style.display = "none" }
break;
}
</script>
But like I...
OK, so I have these background <div>s which pan left and right using the jQuery plugin, spritely.
So, I was wondering what the best way to position them was.
I obviously have specified both of the two <div>s which each contains one background image to have a z-index: -1 so they appear behind everything else.
But I would like them to b...
Have a look at the menus on this page:
http://www.pieterdedecker.be/labs/vspwpg/?page_id=96
They look okay in Chrome 5 (above) and IE8 (below).
When I load the page into Firefox 3.5 (above) or IE7 (below) something goes wrong.
In the first case, the arrows on the right have moved to the next row. In the second case, the menu fal...
hi
I have this code and can't figure out what seems to be the problem: if i select 1 & 2, 1 & 3 it's working.
But if I select 2 or 3 only then it's not working.
What seems to be the problem?
i would like to select multiple at the same time. i need your help, thanks
I'm attaching the image:
http://yfrog.com/3oregistrationoj
Hi again,...
Hi,
I've had quite a few problems with IE6 and our website.
http://www.sweetlets.com/w/solutions/click-stream/features/
At the very top the teaser boxes have scrollbars in IE6, but not IE7, IE8, FF or Chrome. Does anyone have an explanation for this?
Same effect in the footer with the 3 boxes in one row. Also scrollbars. Mathematica...
Visual Studio has a plugin that allows one to copy code from any editor (C#, HTML, XML) and then paste it with HTML formatting that preserves the syntax highlighting, etc.
This is very handy for publishing code samples/examples to a wep page/blog. I have seen one old (2006?) plugin for java to html conversion, but are there any broader ...
I am creating a web page which is designed for mobile safari, and I create a list dynamically. The list is created from a text file in which I receive information and I append this information to the list. It works fine when there are about 200 items, but when the file is very large, (I have tried with up to 4000 items) the page becomes ...
I have a default style like this:
input[type="text"]
{ width: 250px; }
Now I have a input box that I want to have 450 width, how can I do this?
I've tried:
#searchbox
{
width: 450px;
}
<input type="text" value="" name="asb" id="searchbox">
but that didn't work.
...
Hi,
Using jQuery, while in the span element, without knowing post-383 id and class, how can I retrieve the url within the h2 a element?
The html code:
<div id="post-1383" class="post-1383>
<h2 class="entry-title">
<a href="http://example.com/soul-music/">Soul Music</a>
</h2>
<span class="btn"></span>
</div>
Something like this?
$...
I am trying to create a page as shown in picture. Now only tables are allowed and no css. I am having difficulty in understanding how to achieve as it is in original image. Any help please?
This is what I have written
<html>
<head>
<title>HTML</title>
</head>
<body>
<table height="350" width="773" background="bg.jpg" >
<tr><td><h1 ali...
Hello all,
I am writing video code in an iphone, based on HTML.
With the following code the movie will play but when I click done the video stops but the html page is gone, all I see is a giant video play button taking up the entire screen. Anyone have any ideas how to go back to the page where the video was clicked?
a href="videos.m...
I am working on a small multi-language website. Originally, all of the html files were in the top level directory. Each page has an English version and a Spanish version, which are different html files. I would like to put these files in their own subdirectories, en/ and es/, and then redirect the top-level domain to en/index.html (since...
I have an input box that that is part of a form . depending on some circumstances I want to add an Onfocus element to my form but i want to do this using js and only if needed. I have listed the html code below . Can anyone tell me how I can add the onFocus element using js ? thanks
<input name="associate" id="associate" type="text" s...
I'm trying to save some values from a form in CakePHP into a MySQL database and when the values go into the database they are getting html encoded.
So something like (#45) gets stored in the database as (#45) and then when someone tries to go back and edit the form they see all the extra characters.
I've tried setting the enc...
Hi!
I have a customised google map embedded into my website. Here is the code for it:
<iframe width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=115531006415676945149.00048e1de39f5afb920b0&amp;ll=9.226911,-100....
I want to make an element dbl clickable, and when they do it, it selects text which is a little ugly. Is there a way to deselect text with JavaScript (or jQuery) or just make it not select text in the first place? Its on an <h1> element by the way.
Also, some have suggested:
$.fn.extend({
disableSelection: function() {
...
The W3C HTML validator reports errors in lines which are inside script <script> tags. It's creating a lot of noise in the validation output. I can wrap my own script in CDATA but I have a lot of script added dynamically by third party controls.
Is there an HTML validator which can ignore everything in all <script> sections?
...