mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Linux (https://www.mersenneforum.org/forumdisplay.php?f=39)
-   -   Script that searches HTML and displays HTML effect (https://www.mersenneforum.org/showthread.php?t=9502)

jasong 2007-10-20 12:29

Script that searches HTML and displays HTML effect
 
I had a hell of a time coming up with a subject line.

Anyway, I have a string in a web page(not my web page):
[code]<td class=g>[/code]
Assuming I'm correct in the assumption that this is the command that places the color green around the text later in the HTML, I'd like to come up with a command that searches for that HTML string and goes directly to that portion of the web page. It wouldn't display the HTML, but the portion of the web page that it affects.(would 'effects' fit here too? After reading a certain xkcd comic, I'm constantly thinking about those two words)

What would be really great is if I could just find a way to make the command into a bookmark, and after clicking on the bookmark, hitting reload would take me directly to the next green box. If I can't do that, I guess I'd be happy with a text file that I could open to get the command, at least until I have it memorized.

ValerieVonck 2007-10-20 20:10

Jasong,

I think you are looking for Cascading Style sheets.

Mini-Geek 2007-10-21 12:59

If you use Firefox, Firebug will do this.
[URL]http://www.getfirebug.com/[/URL] or [URL]https://addons.mozilla.org/en-US/firefox/addon/1843[/URL]
Once you have it and are on the page you want to use it on, click its icon in the status bar, then click on the HTML tab, and search (search box is in the upper right of Firebug's window thing) for the HTML you want. Then roll your mouse over the HTML code there and it will light that part of the rendered HTML in your screen.

jasong 2007-10-22 02:34

Thanks, Mini-Geek, that worked. :)


All times are UTC. The time now is 12:43.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.