SoFunction
Updated on 2025-04-12

Summary of common tips for web code page 2/3



15. IE6 has supported custom cursor!

Syntax format cursor:url (icon) //cur or ani file.
cur is the cursor file in WINDOWS. Except that the value at the header of the cursor file and the icon file are actually the same.
ani is an animation cursor (icon) file in Windows.
<style type="text/css">
<!--
.unnamed1 { cursor:url()}
-->
</style>

16. Scrolled subtitles made with marquee. This is also what I just saw a friend in the forum asking.

grammar:
align=# | top | middle| bottom //Alignment)
BEHAVIOR=AlterNATE | SCROLL | SLIDE //Movement method
BGCOLOR=color//Background area color
DIRECTION=DOWN | LEFT | RIGHT | UP //The direction of movement
Loop=n //Number of loops (default is to loop more than once)
Scrolldelay=milliseconds//Delay
height=#width=#//area area
hspace=# vspace=# //Blank area
scrollamount=#//The speed of movement
<marquee align=top behavior=AlterNATE BGCOLOR=#000000 height=60 width=433 scrollamount=5></marquee>

17. There are also some fonts in FLASH5. Why does it become a ball after breaking up? Is there a solution?

This is a very common question for everyone! Maybe it's bad support for font library! I made it into a transparent gif image format and poured it into it.

18. How to implement the "Add to Favorites" function in flash's web page?

Add getUrl("java script:(`,`Web Teaching Network`)")

19. In Flash, the difference between dynamic attributes of text and input attributes.

input text can be changed by the user or program at runtime.
dynamic text is only allowed to be modified by the program.


20. How to call Dreamweaver in IE for editing.

I believe that many friends who are using WinME or Window2000 will encounter this problem. It's very simple, open our notebook program and save it as a *.reg file. Double-click it to add the information to the registry.
REGEDIT4
[HKEY_CLASSES_ROOT.htmOpenWithListDreamweaver]
[HKEY_CLASSES_ROOT.htmOpenWithListDreamweavershell]
[HKEY_CLASSES_ROOT.htmOpenWithListDreamweavershelledit]
[HKEY_CLASSES_ROOT.htmOpenWithListDreamweavershelleditcommand]
@=""c:Program FilesMacromediaDreamweaver " "%1""

21. Set the dotted line of the table.

Method 1: Make a 1X2 diagram. Half black and half white, then use the table to make a line.
Method 2: Set it in css, and IE5 and 5 must support this effect.
style="BORDER-LEFT: #000000 1PX DASHED; BORDER-RIGHT: #000000 1PX DASHED; BORDER-TOP: #000000 1PX DASHED; BORDER-BOTTOM: #000000 1PX DASHED"

22. Check out the effect of calling the HHCtrl control in the web page.

The code is as follows:
<object  type="application/x-oleobject" class></object><script> ("Haha, everyone, I'm a flash dream!","",50,5,128255,346751);</script>

22. How to make a picture have a shallow to deep gradient.

<SCRIPT language=javascript1.2>
<!--
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
=40
}
function highlightit(cur2){
if (<100)
+=10
else if ()
clearInterval(highlighting)
}
</script>
<img onmouseout=low(this) onmouseover=high(this) style="FILTER: alpha(opacity=40)"src="" >

23. Double-click the left mouse button to scroll the background and click Stop.

<SCRIPT language=javascript>
var currentpos,timer;
function initialize()
{
timer=setInterval("scrollwindow()",16);
}
function sc(){
clearInterval(timer);
}
function scrollwindow()
{
currentpos=;
(0,++currentpos);
if (currentpos != )
sc();
}
=sc
=initialize
</SCRIPT>

24. How to style different text link effects on the same page.

The code is as follows:
<HTML><HEAD><TITLE>How to style different text link effects on the same page</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
a:hover { font-size: 9pt; color: #FF0000; text-decoration: underline}
a:link { font-size: 9pt; color: #006699; text-decoration: underline}
a:visited { font-size: 9pt; color: #006699; text-decoration: underline}
a:active { font-size: 9pt; color: #FF0000; text-decoration: none}
a.r1:hover { font-size: 9pt; color: #FF0000; text-decoration: underline overline}
a.r1:link { font-size: 9pt; color: #000000; text-decoration: underline overline}
a.r1:visited { font-size: 9pt; color: #99CC00; text-decoration: underline overline}
a.r1:active { font-size: 9pt; color: #000000; text-decoration: underline overline}
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<a href="#">Unscore link </a>
<p></p>
<a href="#" class="r1">Double Underlined Link</a>
</BODY>
</HTML>
Additional Notes:
a:hover represents the style of the mouse being obsolete.
a:link represents the style of the link.
a:active represents the style of the currently active connection.
a: visited represents the style of the connection that has been visited.

25. Use CSS to add shadow effects and text stroke effects to the text.

.glow{FONT-SIZE: 9pt; FILTER: Glow(Color=#000000, Strength=1)}
//Text stroke effect
.shadow {FONT-SIZE: 9pt; FILTER: DropShadow(OffX=1, OffY=1, DropShadow(OffX=1, OffY=1, color:#111111); COLOR: #ffffff; FONT-FAMILY: "Song-style"}
//Add a shadow effect
Additional Notes:
To achieve the effect of these two filters, they must be added to the following: <td class=glow or shadow ><div>xxxxxxxx</div></td>
, and leave enough space to display shadows or strokes, otherwise half of the shadows or strokes will occur.

26. How to make a drop-down menu with color.

<select style="FONT-SIZE: 10px; COLOR: #ffffff; FONT-FAMILY: Verdana;BACKGROUND-COLOR: #ff6600;" size=1 >
<option selected>:: Dreamweaver4 ::</option>
<option>::Flash5::</option>
<option>::Firewoks4::</option>
</select>

27. Regarding the problem of bright borders and dark borders in DW4's table.

There are no properties for bright borders and dark borders in the table panel of DW4, because NC does not support it, only you added it in the code.
bordercolorlight="#999999" bordercolordark="#000000"
You can also define a class with Css. For example:
<style>
.bordercolor { bordercolorlight: #999999; bordercolordark: #000000 }
</style>
Then add?lt;table class="bordercolor"> to the table to which you want to add the effect

28. Automatically display the last update date of the home page.

<script>
("Last updated: "++"")
</script>

29. How to make the scroll bar appear on the left?

I think someone posted this code in the forum. It's very interesting. It does take care of some left-handed people, haha!
<html dir="rtl">
<body bgcolor="#000000" text="#FFFFFF">
<table height=18 width=212 align=center bgcolor=#FFFFFF dir="ltr" cellspacing="1"  cellpadding="0">
<tr>
<td bgcolor="#FF0000" >Is your scrollbar on the left?</td>
</tr>
</table>
</body>
</html>

30. How to add the small icon in front of the URL?

First of all, you must understand that the so-called icon (Icon) is a special graphic file format, which uses .ico as the extension. You can find an icon production software online, which has a unique specification: the size of the icon is 16*16 (in pixels); the color must not exceed 16 colors. Add the following content to the HEAD part of the web page file: <LINK REL="SHORTCUT ICON" HREF=" /Icon File Name"> and place it in the root directory of the web page.

31. In an 800*600 monitor, how to prevent scroll bars from appearing on the web page horizontally!

Set to <body leftmargin="0" topmargin="0">, the table width in the web page is 778.

32. Explanation and explanation of <!DOTYPE>.

On web pages, you often see <!DOCTYPE HTML PUBLIC`-//W3C//DTD HTML 4.01//EN`>, which is the version information that declares the HTML file.
Previous page123Next pageRead the full text