best php scripts for your website

home page latest news web development curriculum vitae php scripts contact me

  • C# (Microsoft .NET)
  • JAVA
  • Dynamic HTML
  • PHP & MySQL
  • ASP.NET - C# & VB.NET
  • Perl & CGI
  • C | C++
  • Vector Markup Language
  • SMIL
  • Assembler
  • Databases
  • Wap Development
  • Web site promotion
  • Web Marketing


  • Curriculum Vitae (CV)
  • Major web solutions
  • Web design projects
  • Software solutions

JavaScript function which renders a VML grid

Free programming example written by Anton Zamov


Very useful when you wish to place a grid behind your
VML chart graphics.
 
RenderGrid(gridWidth,gridHeight,hLines,vLines)
gridWidth - width of the gridht
gridHeight - height of the gridth
hLines - number of horizontal lines
vLines - number of vertical lines
 
Example:
 
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<head>
 
</head>
 
<script>
function RenderGrid(gridWidth,gridHeight,hLines,vLines){
 
document.write("<table>");
document.write("<tr>");
document.write("<td>");
 for(i=0;i<=hLines;i++){
  document.write("<v:line from='0,"+(i*(gridHeight/hLines))+"' to='"+gridWidth+","+(i*(gridHeight/hLines))+"' ></v:line>");
 }
 
 for(i=0;i<=vLines;i++){
  document.write("<v:line from='"+(i*(gridWidth/vLines))+",0' to='"+(i*(gridWidth/vLines))+","+gridHeight+"' ></v:line>");
 }
document.write("</td>");
document.write("</tr>");
document.write("</table>");
 
}
 
RenderGrid(600,100,5,10);
</script>
 
 
 
</body>
</html>











Jobs Portal, poweful jobs board software

PHP Mall, multi vendors mall website software

Car Portal, php script for auto classifieds websites

NetArt Media, software products and services

Real Estate Portal, web software for real estate portals

Blog System, multi user blog hosting script

PHP Store, powerful e-commerce system written in PHP


C# (Microsoft .NET) | JAVA | Dynamic HTML | PHP & MySQL | Perl & CGI | C | C++ | Vector Markup Language
SMIL | Assembler | Databases | Wap Development | Web site promotion | Web Marketing

Copyright Anton Zamov 1998 - 2023