Transparent Flash File in HTML

September 8th, 2009 Sumit Gilhotra 3 comments

Hello,

These days lots of web developer want to place Transparent Flash in HTML file… you have to do two things for that…

1. Create a transparent flash file

2. Place that code in HTML

Create a transparent flash file

Preparing the HTML page to make the Flash movie transparent

Three methods of creating an HTML page with the correct code are outlined below.
Publishing from Flash

The HTML for a Flash movie can be created using the Publish Settings feature in Flash. The Publish Settings dialog box provides an option to affect the WMODE setting. The options selected in the Publish Settings will be added to the HTML source code automatically:

1. Choose File > Publish Settings. Select the HTML tab.
2. Choose “Transparent” in the WMODE setting to make the Flash movie’s background disappear in browsers which support this feature.
3. Publish the document.

Place that code in HTML

This simple example / code shows all the things in details

<script>
function hider()
{
document.getElementById(”n”).style.display=’none’;
}
</script>
 
<div style=”position:relative; “>
<div id=”n” style=”position:absolute; top:-197px; left:112px; background-color:#4F1717;display:show;width:600px”>
<div style=”text-align:right; height:16px; “><a href=”javascript:hider()”><span style=”font-size:9px; color:#ffffff”><strong>close..[x]</span></strong></a></div>
<object classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0″ width=”600″ height=”350″ id=”Home-animation” align=”middle”>
<param name=”allowScriptAccess” value=”sameDomain” />
<param name=”movie” value=”images/Home-animation600×350.swf” /><param name=”quality” value=”high” /><param name=”wmode” value=”transparent” /><param name=”bgcolor” value=”#ffffff” /><embed src=”images/Home-animation600×350.swf” quality=”high” wmode=”transparent” bgcolor=”#ffffff” width=”600″ height=”350″ name=”Home-animation” align=”middle” allowScriptAccess=”sameDomain” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer” />
</object>
</div>
 
</div>

All the best !!!


VN:F [1.6.3_896]
Rating: 5.0/5 (1 vote cast)
Categories: Internet Tags: , ,

A Quick Reference Guide to Microsoft Technologies (Cheat Sheets)

September 8th, 2009 Neeraj Mathur 1 comment

While working as a developer we all face some syntax problem , So in order to reduce that same redundant syntax search effort everyday Technology people had  compiled very good single page handy sheets which contains syntax and common features of each technology which is also known as Cheat Sheets, And i think every developer should have them.

These Cheat sheets are normally  one-page reference guide

 

1. .NET Quick Reference

2.  ASP.NET 2.0 Page Life Cycle & Common Event

3. Visual Studio Built-in Code Snippets (C#)

4. Quick Reference to JavaScript

5. ASP – Active Server Pages & ASP.Net

6. Quick Reference to C# common functions and methods

7. Quick Reference to Regular Expression

8. SQL – Structured Query Language

    9. UML – Unified Modeling Language

10. XML – eXtensible Markup Language

11. Jquery cheat Sheet

12. AJAX

13. Others

VN:F [1.6.3_896]
Rating: 4.3/5 (4 votes cast)

Some new features of SQL SERVER 2008

September 7th, 2009 Sumit Gilhotra No comments

Lets now talk about whats new features in SQL Server 2008.

We would categorise the new features into Performance, Manageability and Transparency. So what’s new in SQL Server 2008, well we have,

1.       Full Text Indexes are stored in the database

2.       Full Text Query engine is part of the main SQL Server Query Engine

3.       Words in a Full Text Index are visible.

4.       Words in a document are

5.       Noise words are no longer in a text file but stored in the database and are called Stop Lists

6.       Contents of a Stop List can be amended on the fly (pre indexed content will not be amended) without restarting SQL Server

7.       Thesaurus Files can be amended on the fly without restarting SQL Server

8.       Indexes are maintained in SQL Server memory rather than the OS.

9.       A new function exists to show how a query gets translated by word breaking, stop lists and thesaurus’s

10.   A new external process is used to index content. (This is for security and stability reasons as iFilters can be written by anybody)

11.   Support for filestream data, which means you don’t have to blobs in your database and means managing file growth is easier.

VN:F [1.6.3_896]
Rating: 0.0/5 (0 votes cast)

ISRO’s Bhuvan to beat Google Earth

September 7th, 2009 Sumit Gilhotra 4 comments

Bhuvan allows you to zoom far closer than the aerial view from a chopper. If Google Earth shows details upto 200 metres distance and Wikimapia upto 50 metres, Bhuvan will show images upto 10 metres, which means you can easily see details upto a  three floor high building and also add information.

Bhuvan uses the data recorded by Indian satellites and the first prototype released.

Bhuvan’s edge over Google Earth

  • Google Earth’s Zoom levels up to 200 mt – ISRO’s Bhuvan      Zoom levels up to 10 mt
  • Google Earth: Single layer information   –   ISRO’s Bhuvan:          Multi-layer information
  • Google Earth: Images upgraded every 4 years -  ISRO’s Bhuvan:  Images upgraded every year
  • Google Earth: No alternate viewing options – ISRO’s Bhuvan:     Options of viewing on different dates
  • Google Earth: Uses international satellites – ISRO’s Bhuvan:   Uses Indian satellites
VN:F [1.6.3_896]
Rating: 2.5/5 (2 votes cast)
Categories: News Tags: , ,

ASP.Net Page Life Cycle (Cheat Sheet)

September 6th, 2009 Neeraj Mathur 7 comments

Today i am looking for articles about ASP.Net Page Life cycle and after Googling i found this incredible diagram explaining the detailed Page Life Cycle.

All credit goes to “Andrianarivony Leon”

ASP.NET-2.0-life-cycle

image

Page Event Typical Use
PreInit Use this event for the following:

  • Check the IsPostBack property to determine whether this is the first time the page is being processed.
  • Create or re-create dynamic controls.
  • Set a master page dynamically.
  • Set the Theme property dynamically.
  • Read or set profile property values.
    NoteNote:
    If the request is a postback, the values of the controls have not yet been restored from view state. If you set a control property at this stage, its value might be overwritten in the next event.
Init Raised after all controls have been initialized and any skin settings have been applied. Use this event to read or initialize control properties.
InitComplete Raised by the Page object. Use this event for processing tasks that require all initialization be complete.
PreLoad Use this event if you need to perform processing on your page or control before the Load event.

Before the Page instance raises this event, it loads view state for itself and all controls, and then processes any postback data included with the Request instance.

Load The Page calls the OnLoad event method on the Page, then recursively does the same for each child control, which does the same for each of its child controls until the page and all controls are loaded.

Use the OnLoad event method to set properties in controls and establish database connections.

Control events Use these events to handle specific control events, such as a Button control’s Click event or a TextBox control’s TextChanged event.

NoteNote:
In a postback request, if the page contains validator controls, check the IsValid property of the Page and of individual validation controls before performing any processing.
LoadComplete Use this event for tasks that require that all other controls on the page be loaded.
PreRender Before this event occurs:

The PreRender event occurs for each control on the page. Use the event to make final changes to the contents of the page or its controls.

SaveStateComplete Before this event occurs, ViewState has been saved for the page and for all controls. Any changes to the page or controls at this point will be ignored.

Use this event perform tasks that require view state to be saved, but that do not make any changes to controls.

Render This is not an event; instead, at this stage of processing, the Page object calls this method on each control. All ASP.NET Web server controls have a Render method that writes out the control’s markup that is sent to the browser.

If you create a custom control, you typically override this method to output the control’s markup. However, if your custom control incorporates only standard ASP.NET Web server controls and no custom markup, you do not need to override the Render method. For more information, see Developing Custom ASP.NET Server Controls.

A user control (an .ascx file) automatically incorporates rendering, so you do not need to explicitly render the control in code.

Unload This event occurs for each control and then for the page. In controls, use this event to do final cleanup for specific controls, such as closing control-specific database connections.

For the page itself, use this event to do final cleanup work, such as closing open files and database connections, or finishing up logging or other request-specific tasks.

NoteNote:
During the unload stage, the page and its controls have been rendered, so you cannot make further changes to the response stream. If you attempt to call a method such as the Response.Write method, the page will throw an exception.
VN:F [1.6.3_896]
Rating: 4.5/5 (2 votes cast)
Categories: ASP.Net Tags: , ,