HTML - Identifying Similar Contents
Consider I have two Web pages and i have one image that appears in both the web pages ..
Please post the code that will help me to find the image that is repeated in both the web page and a way to block the image .. my idea is to find the contents(the file name given within quotes) of the img tag and then compare with the img tag in the second page to find out the content that is repeated.. kindly help me implement this using a html code Similar TutorialsHi, I have a html page that I have been asked to put onto a new server for a friend. In the html is the following code: {!include file="scroller.tpl"} I can see there is a scroller.tpl page on the site but the server just shows the code a plain text not as an include. I have searched quite a bit but cant find what server side parsing uses {! ... }. The html also has code such as {!if $logged_in} ... {!else} ... {!/if} Any help or suggestions would be most appreciated. Thanks, Hi, I have a website in which the menu is the same on all pages (http://www.hiltrain.com) I have set this up so that the menu item is in bold to identify the specific page the viewer is on. This works perfectly in function and is set up by using: <body id="help"> and then using the same id in the link code, e.g. <a href="howwecanhelp.htm" id="help"> In the css file I have an entry: body#help a#help, font-weight: bold; This gets the menu item for that page to be in bold and this works fine. However this doesn't vaildate well as according to the W3C standards I can't use the id twice. Can anybody advise me on a way to change these to achieve the same affect but so that it complies with W3C. Any help greatly appreciated. Cheers Iain Would like to use CAPTCHA or something on my web site instead of simply providing a contact email address. I'm interested in suggestions or a simple CAPTCHA type solution, recommendation or script. Thank you. This may be a really simple question but thank you all for your time none the less. A family member started making a site using the templates on one.com, he made a bit of a mess so having limited knowledge I took over and tidied it up a little, the problem I have is that I have 6 tabs across the top of the page and 7 hyperlinks down the side. But on certain pages I need another row of tabs along the top and not sure which is the best way to do it. Would it be altering the code of the tab menu already there of embeding a new template in to the sites body?? or maybe another way?? I have no idea how to do any of these things so any help would be thankfully recieved Wonder if anybody can help me. I'm looking for the correct code to be able to grab a piece of text from a text file (rather than having the text in the raw code) and insert it into a page, in a similar manner that the img src="x.jpg" command grabs the picture at x.jpg and inserts it into a page. Any ideas? Thanks for any help. Peter+ I have a page split into 3 main frames * one across the top * one on the left hand side (menu) * one on the right side (content) pretty typical layout, But we are finding that we are having more and more content being put into the top frame and the contents dont all show fully (they are cut off by the bottom of the frame). How can I control the height of the frame to show the entire content all the time? Thanks for any help! Mark After finding a workaround to the perils of using frames, I decided to give myself a new headache. I would like to use the contents of one frame to determine the contents of another using a script within the page itself. Specifically, I want my index page to automatically determine which page within my site the user has navigated to (the page will appear in the content frame) then load a complimentary page in another frame (say and ad frame). Can I do this with javascript or CSS, or do I need to make the index page a php? Hello friend, If I post article more then some words , it takes two pages to display the content. Please help me to display the whole article in one page. See this: http://www.solvedhow.com/How+to+Lose+Weight-5.html This is the coding in paging.html. Please help me PHP Code: <?php class Lib_Paging { var $output=array(); var $prev; var $next; function Lib_Paging($model,$par,$cssstyle) { if($model='classic') $this->doClassicPaging($par,$cssstyle); if($model='default') $this->doDefaultPaging($par,$cssstyle); } function doClassicPaging($par = array(),$cssstyle) { // print_r($par);exit; // echo $cssstyle;exit; if(count($par)>0) { if(!isset($_GET['page'])) { $start = 1; $end = ($par['length']>$par['totalpages'] ? $par['totalpages'] : $par['length']); $s = 0; for($i=$start;$i<=$end;$i++) { $tmp = $_SERVER['QUERY_STRING']."&page=".$i; if($_GET['page'] == "" && $i==1) $this->output[++$s]= '<span class="current">'.$i.'</span>'; else $this->output[++$s]= '<a href="?'.$tmp.'" class=\''.$cssstyle.'\'>'.$i.'</a>'; } if($par['totalpages']>$par['length']) { $tmp = $_SERVER['QUERY_STRING']."&page=".($start+1); $this->next = '<a href="?'.($tmp).'" class=\''.$cssstyle.'\'>Next </a>'; } return true; } else if (isset($_GET['page'])) { $cpage = $_GET['page']; $mid = (int) ($par['length']/2); if($cpage > ($mid+1)) { $start = ($cpage - $mid); $end = $start + $par['length']-1; } else { $start = 1; $end = ($par['length']>$par['totalpages'] ? $par['totalpages'] : $par['length']); } $s=0; for($i=$start;$i<=$end;$i++) { $tmp = split('page',$_SERVER['QUERY_STRING']); $q = $tmp[0]."page=".$i; $tmp = split('&',$tmp[1]); $q .= (strlen(trim($tmp[1]) > 0) ? '&'.$tmp[1] : ''); if($_GET['page']==$i) $this->output[++$s] = '<span class="current">'.$i.'</span>'; else { if($i<=$par['totalpages']) $this->output[++$s] = '<a href="?'.$q.' " class=\''.$cssstyle.'\'>'.$i.'</a>'; } } if ($_GET['page']<$par['totalpages']) { $tmp = split('page',$_SERVER['QUERY_STRING']); $q = $tmp[0]."page=".($_GET['page']+1); $tmp = split('&',$tmp[1]); $q .= (strlen(trim($tmp[1]) > 0) ? '&'.$tmp[1] : ''); $this->next = '<a href="?'.($q).' " class=\''.$cssstyle.'\'>Next </a>'; } if($_GET['page']>1) { $tmp = split('page',$_SERVER['QUERY_STRING']); $q = $tmp[0]."page=".($_GET['page']-1); $tmp = split('&',$tmp[1]); $q .= (strlen(trim($tmp[1]) > 0) ? '&'.$tmp[1] : ''); $this->prev .= ' <a href="?'.($q).'" class=\''.$cssstyle.'\'>Prev</a>'; } } } } function doDefaultPaging($par = array(),$cssstyle) { // print_r($par);exit; // echo $cssstyle;exit; if(count($par)>0) { if(!isset($_GET['page'])) { $start = 1; $end = ($par['length']>$par['totalpages'] ? $par['totalpages'] : $par['length']); $s = 0; for($i=$start;$i<=$end;$i++) { $tmp = $_SERVER['QUERY_STRING']."&page=".$i; if ($end==1) // For A Single Display Page { $this->output[++$s]= ''; } else { if($_GET['page'] == "" && $i==1) $this->output[++$s]= '<li class=\''.$cssstyle.' selected\'>'.$i.'</li>'; else $this->output[++$s]= '<li class=\''.$cssstyle.'\'><a href="'.$_SESSION['ajasiteset']['sitefullpath'].'?'.$tmp.'" >'.$i.'</a></li>'; } } if($par['totalpages']>$par['length']) { $tmp = $_SERVER['QUERY_STRING']."&page=".($start+1); $this->next = '<li><a href="'.$_SESSION['ajasiteset']['sitefullpath'].'?'.($tmp).'"><span class="view_edit_next"></span> </a></li>'; } return true; } else if (isset($_GET['page'])) { $cpage = $_GET['page']; $mid = (int) ($par['length']/2); if($cpage > ($mid+1)) { $start = ($cpage - $mid); $end = $start + $par['length']-1; } else { $start = 1; $end = ($par['length']>$par['totalpages'] ? $par['totalpages'] : $par['length']); } $s=0; for($i=$start;$i<=$end;$i++) { $tmp = split('page',$_SERVER['QUERY_STRING']); $q = $tmp[0]."page=".$i; $tmp = split('&',$tmp[1]); $q .= (strlen(trim($tmp[1]) > 0) ? '&'.$tmp[1] : ''); if($_GET['page']==$i) $this->output[++$s] = '<li class=\''.$cssstyle.' selected\'>'.$i.'</li>'; else { if($i<=$par['totalpages']) $this->output[++$s] = '<li class=\''.$cssstyle.'\'><a href="'.$_SESSION['ajasiteset']['sitefullpath'].'?'.$q.' " >'.$i.'</a></li>'; } } if ($_GET['page']<$par['totalpages']) { $tmp = split('page',$_SERVER['QUERY_STRING']); $q = $tmp[0]."page=".($_GET['page']+1); $tmp = split('&',$tmp[1]); $q .= (strlen(trim($tmp[1]) > 0) ? '&'.$tmp[1] : ''); $this->next = '<li><a href="'.$_SESSION['ajasiteset']['sitefullpath'].'?'.($q).'" ><span class="view_edit_next"></span> </a></li>'; } if($_GET['page']>1) { $tmp = split('page',$_SERVER['QUERY_STRING']); $q = $tmp[0]."page=".($_GET['page']-1); $tmp = split('&',$tmp[1]); $q .= (strlen(trim($tmp[1]) > 0) ? '&'.$tmp[1] : ''); $this->prev = '<li><a href="'.$_SESSION['ajasiteset']['sitefullpath'].'?'.($q).'" ><span class="view_edit_pre"></span></a></li>'; } } } } } ?> hi boring question maybe i know, but i cant do it >.< a have a table with two cells (colums) cell A and cell B there is an A HREF button in cell B that opens a photo and displays it in cell A this is great and works fine what i need to do now is "clear" the photo from cell A, not by loading a different photo into it but, just emptying it to its original state before the photo was loaded into it i.e, empty anyone? thanks, sophia Can anyone help me re-adjust the starting point of the iframe contents? If I make no sense I'll make some pictures. I don't know how to describe it, sorry. Thanks for the help Hello, The company where I work has won a contract to take over an existing company (don't really matter who they are). This company maintain an internal web site over on the intranet here, and it's address is: http://website/main So it's only accessable internally. I've been asked to make a copy of it, so the only way that I can figure it out is to go to each page and from IE, File menu, choose Save As, this saves the .html of that page and all the graphics automatically. Is there a way to archive everything automatically, meaning, start with the front page, save all the .html, any graphics, any links and those documents and then go to each other link and save everything, like a web crawler would do. If such an application exists, then what is it and will it work internally ? I use Win XP, IE Browser, Front Page (I am limited to this, as the employer offers this), text editor and Office software. Please let me know what you think, thanks!!!!!!! I have a table grid whose contents are vast insomuch a horizontal scrollbar is displayed to see the entirety of the text. This text resides in <td> tags. Now, what I want to do is not clip the text inside the <td> tags but word wrap. I thought maybe I could use table-layout:fixed and set the width of the <td> tags. It eliminates the scrollbar, but it clips the text. Is there a way I can word wrap text inside <td> tags? I tried using overflow, but that didn't work. Any help would be really appreciated. I have several pages in a site I am designing, some short and some long On short pages the browser automatically hides the scroll bar and on long pages, displays it. This shifts the contents of the page left and right by the width of the scroll bar and completely distracts from the experience and use of the site. I've found a work around; adding breaks so all pages are long enough to have a scroll bar; but that's not the solution, there are plenty of sites out there that don't have this problem and I'd like to know what the fix is. Any ideas gratefully received. Ta, Rizole. I have a simple web page which consists of one column of cells, five rows down. I would like to have some sort of hierarchical structure that allows me to click a link in the top-most cell to bring up a set of links in the second row, then click on one of these links to bring up some more links in the third row etc. Clicking on a different link in the top-most cell will then bring up a different set of links in the second row, and so on. Can anyone suggest a method to do this? I've been looking into frames but i've read that this isn't best practise. Thanks. Hello, I'm working on an internal training CD where I'm going to have several Quicktime videos and I need to categorize them by Chapter & Movie Title, similar to: Chapter 1 - Bananas Movie 1 Movie 2 Movie 3 Chapter 2 - Grapes Movie 4 Movie 5 Movie 6 Etc..... The end user would click on "Movie #". It should be easy enough, but there are two things I need. One - for the Microsoft Active Control warning to go away (not appear) as this will be run locally, and Two - for the movie file to run outside of the browser, or at least for the browser to not show any toolbars or menu options as the movie fills most of the screen. Any way to do this in HTML - something that is easy for me to make the links. I'll have probably a hundred or so movies to each of the CDs I'm compiling, so that's a lot of manual linking. Thanks... Hello all, I'm try to use a form to choose what webpage is displayed in an iframe on the same page. What I have so far is not working: <form name="list" action="" method="get" target="repIframe" style="margin:0px;padding:0px"> <select name="zone"> <option value="./testadvisory.php?warnzone=UTZ019&warncounty=UTC053">St. George</option> <option value="./testadvisory.php?warnzone=UTZ013&warncounty=UTC043">Cedar City</option> </select> </form> <iframe name="repIframe" src="blank.html"></iframe> Could someone offer a suggestion ir procedure to allow the use of a form to choose the content of the iframe? Thanks, Randy Hi, Since we know we can use Div tag to right align and left align but everytime we use it, it gets printed on the next line. Suppose we have 2 paragraphs and we want to right align one and the other left align on the same line, how do we achieve it. Hi, I'm coding a HTML page, in which I see lot of space between my header(<h2></h2>) and the contents of the page. The contents of my page happens to be a form with a lot of fields enclosed in the table tag.. Any pointers on how to get rid of the extra space would be highly helpful. this is how the structure of my HTML code looks: <html> <body> <form> <table> <!-- a lot of fields here...--> </table> </form> </body> </html> Thanks in advance. Hello! Is there any way to make a table showing a folder in your FTP? I have an FTP thats is locked, so is there anyway to make it an autologin I just want it to show the files, not the 'Go up a directory' button And is there anyway to make tthe links so people can click on them to open the file the directory HOW CAN I DO THIS Tap Back Josh.R I am trying to read an HTML file from a file system and render it. What would be the fastest way to read and render such a HTML file? Tried iFrame and setting the inner HTML of a div tag. But both were equally slow. (surprisingly iFrame was better) |