html

personal web site hacked on ovh.com, code added in html

Hello, My friend has a web site on ovh.com.Since a couple of days, the site is flagged as dangerous by google. I had a look in the files (the site only contains only html, css, pjg) and it appears that a new line of code: <script>http://...page.php&lt;/script&gt;&lt;/body&gt; (I do not remember the exact url) has been added in some ...

Help with CSS selectors (jQuery datepicker)

I'm tyring to style the jQuery datepicker. I can't use a jQuery theme as it wrecks the rest of my site. I've got it all working expect for one bit - highlighting the current day. The problem I'm having is that when the datepicker first loads the current day is displayed as follows: <td class="ui-datepicker-days-cell-over ui-datepicke...

How do I show the selected item in an HTML <select> at the top

I have an HTML select that looks something like this (values are fake) <select size="40"> <option value="1">What would you do if I sang out of tune,</option> <option value="2">Would you stand up and walk out on me?</option> ... more <option value="156">Lend me your ears, and I'll sing you a song,</option> <option sel...

Floating variable-width list items without having contents wrap

I'm having a little trouble having this behave exactly as I want across all browsers, but I swear I've done this before: <!html> <head> <style type="text/css"> div { width:300px; } ul { list-style:none; margin:0; padding:0; } li { margin:0.25em 0.5em 0.25em 0; background:transparent url(http://cdn.iconfinder.net/data/ico...

jQuery CSV plugin won't split rows into arrays-of-arrays

I am trying to use the jquery "CSV" plugin, as documented here: http://code.google.com/p/js-tables/wiki/CSV According to the documentation: // Convert CSV data into array of arrays jQuery.csv()("1,2,3\n4,5,6\n7,8,9\n"); // = [ [1,2,3], [4,5,6], [7,8,9] ] But when I attempt to do something similar, it just seems to treat the "\n" as a...

Using lxml to find order of text and sub-elements

Let's say I have the following HTML: <div> text1 <div> t1 </div> text2 <div> t2 </div> text3 </div> I know of how to get the text and subelements of the enclosing div using lxml.html. But is there a way to access both text and sub elements in an iterative manner, that preserves order? In other words, I want to know where the "fr...

Passing data from CKeditor window instance

Hi, I have a requirement where a user (while editing the content in a CKeditor instance) can click a preview button to show the page as it would be with all the headers and logo's etc. The user doesn't like the 'preview' function in CKeditor (which I thought would be adequate), so I was hoping to open the new window and then retrieve t...

Debugging divs and the box model

Is there a browser plug-in I can use to help me determine why my tags and css styles don't render the way I expect them to? It would be really great if I could browse to my test page, and activate a plug in that would show me the dimensions and location of each div box. ...

How to encrypt HTML, CSS and JavaScript to prevent theft

Possible Duplicate: What are some good ways to prevent people from copying my source code? Hi, I am looking into ways to 'encrypt' my HTML and CSS code so that a visitor cannot simply 'View Source' and plagiarize it. Thanks. ...

Semantic HTML markup for complex tables

Which HTML tags would you use to describe table like this: +--------+---------+---------+---------+ | TH1 | TH2 | TH3 | TH4 | +--------+--------+---------+---------+---------+ | TR1 | str1 | 1 | 1 | 1 | +--------+--------+---------+---------+---------+ | TR2 | str2 | 1 |...

Spoofing HTTP-request Referrer from HTML?

Is there some secret and mystical way to change the value of my HTTP-request's referer, or at the very least, keep it from showing? Also, using a MitM page from another domain would not solve my issue, as you are now just submitting that other page's value. This is not browser specific, I would need to do this on the HTML level. The pr...

Can a HTML <param> tag's value parameter contain newlines?

Can a HTML tag's value parameter contain newlines? Context: I want to pass a map to a C++ activex <object> tag via <param>s, and it seems most straightforward to encode the map using spaces and newlines. ...

Slide Down and Edit Within HTML table

Hello, Basically I have a html table with a bunch of data from a database (MySQL). I would like to be able to press on a link and have the a given table row slide down to expand into the editing zone. I would use Ajax to populate that editing space with the detail data from the database. So this would be my table: <table> ...

Why doesn't the defer attribute work on script tags that don't source an external js file in Firefox?

Why doesn't the defer attribute work on script tags that don't source an external js file in Firefox? lets say an ancient cms only allows me to add javascript to templated pages via in-page [script]...my code...[/script] tags and strips any html tags entered into the content area field, thus preventing me from embedding scripts just abo...

Making a div content to "bleed" on the bottom (or prevent the background image to render)

Okey so basically I have: <div id="content"> ... content of arbitrary size ... </div> <div id="content_bottom"></div> The style is: #content { background: transparent url(content_tile.png) center top repeat-y; width: 800px; } #content_bottom { background: transparent url(content_bottom.png) center top no-repeat; hei...

Capable opensource embeddable html email control

Does an opensource web control exist that can read raw mime-encoded email (stored in a mysql db) and reliably render it to the browser? Something along the lines of fckeditor but email focussed? The control only needs to be able to render the email (and preferably expose APIs for working with the email header, attachments and contents)....

Best way to code an HTML/CSS/JS tab navigation system (no images)

Hi, I'm coding a tab system for my website that must be entirely CSS/HTML/JS (without using any images). Problem is, I keep hacking the code until when I'm finished its just a mess. I don't know whether to use positioning, or float the tabs or what. Basically one of the big problems is that after I take away the bottom-border CSS of t...

How can be printed ordered list from number 6 with html only?

Hi, How can be printed ordered list from number 6 with html only (if its not possible how should be done)? Example: 6.home 7.place 8.etc.. 9.etc.. Thanks ...

Is there a html-only templates system for php?

I have started coding in clojure, and I'm really impressed by Enlive. One thing that I really like about it is that Enlive uses html-only templates. So a template is a file with html in it, ending in .html, simple as that. It gets parsed into a dom tree and then that dom tree is manipulated by clojure/enlive, combined, made dynamic, e...

Issues testing websites over local network

So I'm creating a few webapps that need to be tested over our local network, the projects currently sit on my MacBook which uses the built in Apache "Web Sharing" server. When developing locally, I just modify my hosts file and httpd-vhosts.conf to create virtual domains for each of my projects, and everything works fine and dandy. The...