Wednesday, March 18, 2009

windows status in javascript

window.status = "Delhi/NCR No.1 local search engine";

analog clock in javascript

rotate image through javascript

var i=5;
function imgrotate()
{
i=i+1;
if(i%5==0)
{
document.getElementById("img1").src="http://localhost:1096/WebSite1/img/delete.jpg";
}
if(i%5==1)
{
document.getElementById("img1").src="http://localhost:1096/WebSite1/img/arr.jpg";
}
if(i%5==2)
{
document.getElementById("img1").src="http://localhost:1096/WebSite1/img/edit.jpg";
}
if(i%5==3)
{
document.getElementById("img1").src="http://localhost:1096/WebSite1/img/print.gif";
}
if(i%5==4)
{
document.getElementById("img1").src="http://localhost:1096/WebSite1/img/warning.gif";
}
window.setTimeout("imgrotate()","1000");
}
window.setTimeout("imgrotate()","1");

Tuesday, February 10, 2009

object tag in html for PDF ,MOVIE,SOUND

http://joliclic.free.fr/html/object-tag/en/

http://joliclic.free.fr/html/object-tag/en/object-video.html#avi

http://joliclic.free.fr/html/object-tag/en/object-application.html#pdf

Tuesday, February 3, 2009

javascript code

http://www.mattkruse.com/javascript/calendarpopup/

http://www.zapatec.com/website/main/products/prod1/

http://www.mattkruse.com/javascript/calendarpopup/combined_compact_source.html

search on rank Query

SELECT TOP 30 Key_ID, Keyword, SUM(Rank) AS Expr1
FROM (SELECT Key_ID, Keyword, 7 AS Rank
FROM Keyword_Master
WHERE ((' ' + Keyword + ' ' LIKE '% Nursing %') OR
(' ' + Keyword + ' ' LIKE '%-Nursing %')) AND Status = 1
UNION ALL
SELECT Key_ID, Keyword, 5 AS Rank
FROM Keyword_Master
WHERE ((' ' + Keyword + ' ' LIKE '% Home %') OR
(' ' + Keyword + ' ' LIKE '%-Home %')) AND Status = 1
UNION ALL
SELECT Key_ID, Keyword, 3 AS Rank
FROM Keyword_Master
WHERE ((' ' + Keyword + ' ' LIKE '% Government %') OR
(' ' + Keyword + ' ' LIKE '%-Government %')) AND Status = 1
UNION ALL
SELECT Key_ID, Keyword, 1 AS Rank
FROM Keyword_Master
WHERE ((' ' + Keyword + ' ' LIKE '% Approved %') OR
(' ' + Keyword + ' ' LIKE '%-Approved %')) AND Status = 1) KeywordMaster
GROUP BY Key_ID, Keyword
ORDER BY SUM(Rank) DESC