Skip to main content

Posts

Showing posts from 2011

Valid W3C facebook like button

I was trying to validate the facebook like button yesterday. After writing over 30 lines of code I found J. Norton like button script , which is quite lighter. So I spent nearly half an hour trying to integrate it in to my template and 3 hours to create this valid facebook like button generator so you can make it as you desire and should still be W3C valid . The facebook like button enable your users the possibility to share your content on facebook so that their friends could see it. So what are you waiting for, go ahead and create you own valid facebook like button . ***Later edit: To get your Facebook Application ID for your like button you have to go to Facebook Developer Page and sing up. You must set up a new application if you don't have one. Otherwise just copy and paste your App ID in to the " Facebook Application ID " field down here. Please comment if you need further assistance <div id="fb-root"></div><script lang...

Change Image On Mouseover Generator

Add some style to your buttons or images , and have them change when you pass your mouse over them.You can use the "change image on mouseover generator" below to create the code for you. Insert URL of the image you want to display. Enter the URL of image that change to on mouseover Enter URL to link to. (include http:// ) First image URL of original image: URL of mouseover image: URL to link image to: Second image (optional) URL of original image: URL of mouseover image: URL to link image to: Third image (optional) URL of original image: URL of mouseover image: URL to link i...

Add to favorites script generator

Have you ever wandered how can you make it easier to your visitors to find their way back to your page . The answer is simple. An ' Add To Favorites Button ' is the simplest and the most efficient way to do it. Web Site Title: test URL : http://test.com Link Text: test Color : Code: <script type="text/javascript"> if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) { var url="http://test.com"; var title="test"; document.write('<A HREF="javascript:window.external.AddFavorite(url,title)'); document.write('"><font color=#000000 >test</font></a>'); } else { var alt = "<font color=#000000 >test</font><BR>"; if(navigator.appName == "Netscape") alt += "Press (Ctrl-D) on your keyboard.</font>"; document.write(alt); } </SCRIPT>    

Disable Right Mouse Click Code Generator

 The best way to protect the content of your web pages is, not allow users to copy it . Disabling right click will not stop hackers from stealing your content but will make the most of your users to accept that it's not possible to copy it . Copy and paste the code between the <head> </head> tags of your web page. Please insert the message displayed when right click is executed: Copy and paste the code between the <head> </head> tags of your web page. <script language=JavaScript> var message="Right click has been deactivated for security reasons "; function click(z) { if (document.all) { if (event.button == 2) { alert(message); return false; } } if (document.layers) { if (z.which == 3) { alert(message); return false; } } } if (document.layers) { document.captureEvents(Event.MOUSEDOWN); } document.onmousedown=click; </script>

Set Home Page Code Generator

A StartPage or a HomePage is the web page or local file that automatically loads when a web browser starts or when the browser's "home" button is pressed.. The user can specify the URL of the page to be loaded. This is a code generator to create a ' set this as your homepage ' link. Place the code on your page and users can set your page as their homepage . Use the form below. 1. Insert your web site title. 2. Insert your web domain name. 3. Please select the color of your link. Web Site Title : URL : Link Color : Set Home Page generator Copy / Paste the fallowing code into your web page. <!--Set Home page script start here--> <!--[if IE]><a HREF onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://s.sfd');" style="cursor:hand"> <font color="#000000" >Make dssa Your Homepage!</font></a><![endif]...

SQL SERVER – 2008 – Creating Full Text Catalog and Full Text Search

Full Text Index helps to perform complex queries against character data.  These queries can include word or phrase searching. We can create a full-text index on a table or indexed view in a database. Only one full-text index is allowed per table or indexed view. The index can contain up to 1024 columns. Software developer Monica who helped with screenshots also informed that this feature works with RTM (Ready to Manufacture) version of SQL Server 2008 and does not work on CTP (Community Technology Preview) versions. To create an Index, follow the steps: Create a Full-Text Catalog Create a Full-Text Index Populate the Index 1) Create a Full-Text Catalog Full – Text can also be created while creating a Full-Text Index in its Wizard. 2) Create a Full-Text Index 3) Populate the Index As the Index Is created and populated, you can write the query and use in searching records on that table which provides better performance. For Example, We will find the Employee Records w...

Understanding SQL Server Full-Text Indexing

Microsoft SQL Server supports T-SQL, an implementation of ANSI standard SQL. T-SQL is designed to (among other things) search for matches in your data. For example, if you've created a table with a column named Notes you could construct these queries: SELECT * FROM MyTable WHERE Notes = 'Deliver Tuesday' SELECT * FROM MyTable WHERE Notes LIKE '%caution%' But what if you're not looking for an exact match, either to the full text of the column or a part of the column? That's when you need to go beyond the standard SQL predicates and use SQL Server's full-text search capabilities. With full-text searching, you can perform many other types of search: Two words near each other Any word derived from a particular root (for example run, ran, or running) Multiple words with distinct weightings A word or phrase close to the search word or phrase In this article, I'll show you how to set up and use full-text searching in SQL Server 2000, and give you a sn...

Stylish text with the css text-shadow property...

This is a  cross-post of an article  I wrote for the  hacks.mozilla.org  blog. It shows off some of the fun stuff web developers can do with the  text-shadow  feature that will be released as part of Firefox 3.5. The  text-shadow  CSS property does what the name implies: It lets you create a slightly blurred, slightly moved copy of text, which ends up looking somewhat like a real-world shadow. The  text-shadow  property was first introduced in CSS2, but as it was improperly defined at the time, its support was dropped again in CSS2.1. The feature was re-introduced with CSS3 and has now  made it into Firefox 3.5 . How it Works According to the CSS3 specification, the text-shadow property can have the following values: none | [<shadow>, ] * <shadow>, <shadow> is defined as: [ <color>? <length> <length> <length>? | <length> <length> <length>? <color>? ], where the firs...

Highlighting Search Keywords in a DataGrid Web Control

Introduction In many of the popular search engines (such as Google), when you perform a search the resulting page displays a short text snippet from each search "hit" with each of those search words you had specified in bold type face. Similarly, if you view Google's cached version of a search hit, the word(s) you searched on are highlighted different colors to make them easy to pick out. This article will examine how to provide such functionality in ASP.NET when using a DataGrid Web control. A DataGrid is an excellent Web control to list search results. Essentially you provide a TextBox Web control into which a user can enter a search query. When the user submits the form, it's posted back and the database is queried for matching records. These returned results can then be databound to the DataGrid, which will show one result per HTML table row. For more information on the DataGrid Web control be sure to read Scott Mitchell's A Thorough Examination of the D...

CSS Trick: Turning a background image into a clickable link

One of the things I most often get asked by people trying to master HTML and CSS is “How do I make a background image clickable?” It’s easy to wrap a regular image tag in a link, but what if your design or situation required that you use a background image? It’s actually quite simple. Just follow these steps and I’ll show you how to make a clickable background image like this: ASp.net Problem Solution Start with just a link exactly as you would make it for any other purpose, and make sure to give the link an id so that we can use that to apply our styles: 1 < a href = " http://problemfacing.blogspot.com/ " title = "ASP.NET Problem Solution" id = "xavisys-logo" > ASP.NET Problem Solution </ a > That’s all the (X)HTML you’ll need to make your background image clickable. Your link should look something like this:  Asp.net Problem Solution So, how can we make a background image a clickable link? It turns out it can be done with a clever CSS t...