<%@include file="../includes/global.jspf"%> <% pg = 1; String acct= getParameter(request,"acct","linktous"); String style= getParameter(request,"style","1"); String gURL = "http://www.vflyer.com/main/cc/"+acct; if (!acct.equals("linktous")) gURL = "http://"+acct+".vflyer.com"; String baseURL = "http://www.vflyer.com/images/icons/"; title = "Link Generator"; String [] ids = {"0","1"}; %> <%@include file="../includes/header.jsp"%>
vFlyer Labs » Link Love Generator

Link Generator:
This page allows you to generate HTML to place links to your gallery or vFlyer on your website or blog.
Account Name:

Choose Style:
<% int MAX = 14; for (int i=1;i");} String checked = ""; if (style.equals(i+"")) checked = "checked"; %> style="text-align: middle">
<% } %>

<% String comment = "My Classified Ads on vFlyer at http://"+acct+".vflyer.com"; if (acct.equals("linktous")) comment = "vFlyer - Create Classified Ads Quickly and Easily"; %>
ICON


Click to Test
GET HTML

<%@include file="../includes/footer.jsp"%> <%! public static String [] getFileList (String path) { File file = new File(path); if (file.isDirectory()) { return file.list(); } return null; } public static boolean isImage(String name) { name = name.toLowerCase(); if (name.endsWith(".jpg")) return true; if (name.endsWith(".gif")) return true; if (name.endsWith(".png")) return true; return false; } public static boolean isImage(String name, String type) { name = name.toLowerCase(); type = type.toLowerCase(); if (name.endsWith(type)) return true; else return false; } public static int getWidth(String str) { StringTokenizer items = new StringTokenizer(str, "x"); int size = items.countTokens(); String[] result = new String[size]; for(int i = 0;i < size;i++) result[i] = (String)items.nextToken(); return (Integer.parseInt(result[0])); } public static int getHeight(String str) { StringTokenizer items = new StringTokenizer(str, "x"); int size = items.countTokens(); String[] result = new String[size]; for(int i = 0;i < size;i++) result[i] = (String)items.nextToken(); return (Integer.parseInt(result[1])); } public static String truncate(String str, int s) { if (str.length()>s) { str = str.substring(0,s)+"..."; } return str; } %>