Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Lee

Members
  • Joined

  • Last visited

  1. Hi everybody. Im considering starting up a dating site and im after a script where you can search for memebers within so many miles of a uk postcode. You can see what i mean using the advanced search on www.britster.com. I cant seem to find any dating scvript that allows you to do this. Does any body know of any? Many thanks.
  2. Hi everyone, i have a peice of javascript on my website that is bringin back the following error when my site is viewed in IE: Line: 1 Char: 1 Error: Object Expected Error Code:0 I have spent hours trying to work out the problem, my eyes want to pop out of my skull. Please could sombody tell me if they spot anything? My javascript is: <script type="text/javascript"> var tstylesNames=["DS","Game Boy Advance","GameCube","Playstation 2","Playstation 3","PSP","Wii","Xbox","Xbox 360","Accessories","Console Bundles","Coming Soon","DS submenu","Game Boy Advance submenu","GameCube submenu","Playstation 2 submenu","Playstation 3 submenu","PSP submenu","Wii submenu","Xbox submenu","Xbox 360 submenu","Accessories submenu","Console Bundles submenu",]; var tXPStylesNames=[]; var tlevelDX=20; var texpanded=0; var texpandItemClick=1; var tcloseExpanded=1; var tcloseExpandedXP=0; var ttoggleMode=0; var tnoWrap=1; var titemTarget="_self"; var titemCursor="pointer"; var statusString="link"; var tblankImage=""; var tpathPrefix_img=""; var tpathPrefix_link=""; var tmenuWidth="182px"; var tmenuHeight="auto"; var tabsolute=1; var tleft="0px"; var ttop="1px"; var tfontStyle=""; var tfontColor=["",""]; var tfontDecoration=["none","none"]; var tfontColorDisabled=""; var tpressedFontColor=""; var tmenuBackColor="#FFFFFF"; var tmenuBackImage=""; var tmenuBorderColor="#FFFFFF"; var tmenuBorderWidth=0; var tmenuBorderStyle="none"; var titemAlign="left"; var titemHeight=27; var titemBackColor=["",""]; var titemBackImage=["",""]; var ticonWidth=0; var ticonHeight=0; var ticonAlign="left"; var texpandBtn=["","",""]; var texpandBtnW=0; var texpandBtnH=0; var texpandBtnAlign="left"; var tpoints=0; var tpointsImage=""; var tpointsVImage=""; var tpointsCImage=""; var tpointsBImage=""; var tfloatable=1; var tfloatIterations=10; var tfloatableX=1; var tfloatableY=1; var tmoveable=0; var tmoveHeight=12; var tmoveColor="#AA0000"; var tmoveImage=""; var tXPStyle=0; var tXPIterations=10; var tXPBorderWidth=0; var tXPBorderColor="#FFFFFF"; var tXPAlign="left"; var tXPTitleBackColor="#AFB1C3"; var tXPTitleBackImg=""; var tXPTitleLeft=""; var tXPTitleLeftWidth=0; var tXPIconWidth=0; var tXPIconHeight=""; var tXPMenuSpace=0; var tXPExpandBtn=["","","",""]; var tXPBtnWidth=0; var tXPBtnHeight=26; var tXPFilter=1; var tdynamic=0; var tajax=0; var tsaveState=0; var tsavePrefix="menu1"; var tstyles = [ ["titemBackImage=$templatedir/images/menu/ds_normal.png,$templatedir/images/menu/ds_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=$templatedir/images/menu/gba_normal.png,$templatedir/images/menu/gba_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=$templatedir/images/menu/gamecube_normal.png,$templatedir/images/menu/gamecube_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=$templatedir/images/menu/ps2_normal.png,$templatedir/images/menu/ps2_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=$templatedir/images/menu/ps3_normal.png,$templatedir/images/menu/ps3_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=$templatedir/images/menu/psp_normal.png,$templatedir/images/menu/psp_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=$templatedir/images/menu/wii_normal.png,$templatedir/images/menu/wii_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=$templatedir/images/menu/xbox_normal.png,$templatedir/images/menu/xbox_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=$templatedir/images/menu/360_normal.png,$templatedir/images/menu/360_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=$templatedir/images/menu/accessories_normal.png,$templatedir/images/menu/accessories_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=$templatedir/images/menu/bundles_normal.png,$templatedir/images/menu/bundles_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=$templatedir/images/menu/soon_normal.png,$templatedir/images/menu/soon_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=$templatedir/images/menu/ds_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,none"], ["titemBackImage=$templatedir/images/menu/gba_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,none"], ["titemBackImage=$templatedir/images/menu/gamecube_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,"], ["titemBackImage=$templatedir/images/menu/ps2_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,none"], ["titemBackImage=$templatedir/images/menu/ps3_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,"], ["titemBackImage=$templatedir/images/menu/psp_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,"], ["titemBackImage=$templatedir/images/menu/wii_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,"], ["titemBackImage=$templatedir/images/menu/xbox_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,none"], ["titemBackImage=$templatedir/images/menu/360_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,none"], ["titemBackImage=$templatedir/images/menu/accessories_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,none"], ["titemBackImage=$templatedir/images/menu/bundles_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,none"], ]; var tXPStyles = [ ]; var tmenuItems = [ ["DS","", "", "", "", "", "", "0", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=27&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Action","<?php echo tep_href_link('index.php', 'cPath=22&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Activity","<?php echo tep_href_link('index.php', 'cPath=23&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Adventure","<?php echo tep_href_link('index.php', 'cPath=24&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Classic","<?php echo tep_href_link('index.php', 'cPath=25&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Fighting","<?php echo tep_href_link('index.php', 'cPath=26&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Hardware","<?php echo tep_href_link('index.php', 'cPath=27&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Platform","<?php echo tep_href_link('index.php', 'cPath=28&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Point and Click","<?php echo tep_href_link('index.php', 'cPath=29&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Puzzle","<?php echo tep_href_link('index.php', 'cPath=30&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Racing","<?php echo tep_href_link('index.php', 'cPath=31&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Role Playing","<?php echo tep_href_link('index.php', 'cPath=32&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Sport","<?php echo tep_href_link('index.php', 'cPath=33&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Strategy","<?php echo tep_href_link('index.php', 'cPath=34&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["Game Boy Advance","", "", "", "", "", "", "1", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=35&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Action","<?php echo tep_href_link('index.php', 'cPath=36&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Activity","<?php echo tep_href_link('index.php', 'cPath=37&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Classic","<?php echo tep_href_link('index.php', 'cPath=38&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Driving","<?php echo tep_href_link('index.php', 'cPath=39&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Fighting","<?php echo tep_href_link('index.php', 'cPath=40&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Hardware","<?php echo tep_href_link('index.php', 'cPath=41&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Platform","<?php echo tep_href_link('index.php', 'cPath=42&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Puzzle","<?php echo tep_href_link('index.php', 'cPath=43&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Quiz","<?php echo tep_href_link('index.php', 'cPath=44&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Racing","<?php echo tep_href_link('index.php', 'cPath=45&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Role Playing","<?php echo tep_href_link('index.php', 'cPath=46&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Sport","<?php echo tep_href_link('index.php', 'cPath=47&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Strategy","<?php echo tep_href_link('index.php', 'cPath=48&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["GameCube","", "", "", "", "", "", "2", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=49&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Action","<?php echo tep_href_link('index.php', 'cPath=50&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Activity","<?php echo tep_href_link('index.php', 'cPath=51&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Classic","<?php echo tep_href_link('index.php', 'cPath=52&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Driving","<?php echo tep_href_link('index.php', 'cPath=53&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Fighting","<?php echo tep_href_link('index.php', 'cPath=54&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Hardware","<?php echo tep_href_link('index.php', 'cPath=55&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Party","<?php echo tep_href_link('index.php', 'cPath=56&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Platform","<?php echo tep_href_link('index.php', 'cPath=57&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Puzzle","<?php echo tep_href_link('index.php', 'cPath=58&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Racing","<?php echo tep_href_link('index.php', 'cPath=59&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Role Playing","<?php echo tep_href_link('index.php', 'cPath=60&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Sport","<?php echo tep_href_link('index.php', 'cPath=61&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Strategy","<?php echo tep_href_link('index.php', 'cPath=62&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["Playstation 2","", "", "", "", "", "", "3", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=63&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Action","<?php echo tep_href_link('index.php', 'cPath=64&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Activity","<?php echo tep_href_link('index.php', 'cPath=65&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Board Game","<?php echo tep_href_link('index.php', 'cPath=66&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Classic","<?php echo tep_href_link('index.php', 'cPath=67&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Driving","<?php echo tep_href_link('index.php', 'cPath=68&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Fighting","<?php echo tep_href_link('index.php', 'cPath=69&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Flight","<?php echo tep_href_link('index.php', 'cPath=70&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Hardware","<?php echo tep_href_link('index.php', 'cPath=71&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Lifestyle","<?php echo tep_href_link('index.php', 'cPath=72&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Music","<?php echo tep_href_link('index.php', 'cPath=73&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Party","<?php echo tep_href_link('index.php', 'cPath=74&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Platform","<?php echo tep_href_link('index.php', 'cPath=75&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Point and Click","<?php echo tep_href_link('index.php', 'cPath=76&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Puzzle","<?php echo tep_href_link('index.php', 'cPath=77&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Quiz","<?php echo tep_href_link('index.php', 'cPath=78&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Racing","<?php echo tep_href_link('index.php', 'cPath=79&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Role Playing","<?php echo tep_href_link('index.php', 'cPath=80&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Sport","<?php echo tep_href_link('index.php', 'cPath=81&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Strategy","<?php echo tep_href_link('index.php', 'cPath=82&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["Playstation 3","", "", "", "", "", "", "4", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=83&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Action","<?php echo tep_href_link('index.php', 'cPath=84&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Activity","<?php echo tep_href_link('index.php', 'cPath=85&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Driving","<?php echo tep_href_link('index.php', 'cPath=86&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Fighting","<?php echo tep_href_link('index.php', 'cPath=87&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Flight","<?php echo tep_href_link('index.php', 'cPath=88&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Hardware","<?php echo tep_href_link('index.php', 'cPath=89&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Music","<?php echo tep_href_link('index.php', 'cPath=90&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Party","<?php echo tep_href_link('index.php', 'cPath=91&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Quiz","<?php echo tep_href_link('index.php', 'cPath=92&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Racing","<?php echo tep_href_link('index.php', 'cPath=93&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Role Playing","<?php echo tep_href_link('index.php', 'cPath=94&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Sport","<?php echo tep_href_link('index.php', 'cPath=95&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Strategy","<?php echo tep_href_link('index.php', 'cPath=96&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["PSP","", "", "", "", "", "", "5", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=97&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["|Action","<?php echo tep_href_link('index.php', 'cPath=98&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["|Fighting","<?php echo tep_href_link('index.php', 'cPath=99&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["|Hardware","<?php echo tep_href_link('index.php', 'cPath=100&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["|Platform","<?php echo tep_href_link('index.php', 'cPath=101&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["|Puzzle","<?php echo tep_href_link('index.php', 'cPath=102&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["|Racing","<?php echo tep_href_link('index.php', 'cPath=103&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["|Role Playing","<?php echo tep_href_link('index.php', 'cPath=104&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["|Sport","<?php echo tep_href_link('index.php', 'cPath=105&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["|Strategy","<?php echo tep_href_link('index.php', 'cPath=106&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["Wii","", "", "", "", "", "", "6", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=107&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Action","<?php echo tep_href_link('index.php', 'cPath=108&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Activity","<?php echo tep_href_link('index.php', 'cPath=109&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Adventure","<?php echo tep_href_link('index.php', 'cPath=110&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Classic","<?php echo tep_href_link('index.php', 'cPath=111&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Driving","<?php echo tep_href_link('index.php', 'cPath=112&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Fighting","<?php echo tep_href_link('index.php', 'cPath=113&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Hardware","<?php echo tep_href_link('index.php', 'cPath=114&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Party","<?php echo tep_href_link('index.php', 'cPath=115&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Platform","<?php echo tep_href_link('index.php', 'cPath=116&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Puzzle","<?php echo tep_href_link('index.php', 'cPath=117&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Racing","<?php echo tep_href_link('index.php', 'cPath=118&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Role Playing","<?php echo tep_href_link('index.php', 'cPath=119&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Sport","<?php echo tep_href_link('index.php', 'cPath=120&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Strategy","<?php echo tep_href_link('index.php', 'cPath=121&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["Xbox","", "", "", "", "", "", "7", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=122&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Action","<?php echo tep_href_link('index.php', 'cPath=123&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Activity","<?php echo tep_href_link('index.php', 'cPath=124&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Classic","<?php echo tep_href_link('index.php', 'cPath=125&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Driving","<?php echo tep_href_link('index.php', 'cPath=127&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Fighting","<?php echo tep_href_link('index.php', 'cPath=128&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Flight","<?php echo tep_href_link('index.php', 'cPath=129&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Hardware","<?php echo tep_href_link('index.php', 'cPath=130&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Music","<?php echo tep_href_link('index.php', 'cPath=131&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Party","<?php echo tep_href_link('index.php', 'cPath=132&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Pinball","<?php echo tep_href_link('index.php', 'cPath=133&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Platform","<?php echo tep_href_link('index.php', 'cPath=134&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Puzzle","<?php echo tep_href_link('index.php', 'cPath=135&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Racing","<?php echo tep_href_link('index.php', 'cPath=136&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Role Playing","<?php echo tep_href_link('index.php', 'cPath=137&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Sport","<?php echo tep_href_link('index.php', 'cPath=138&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Strategy","<?php echo tep_href_link('index.php', 'cPath=139&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["Xbox 360","", "", "", "", "", "", "8", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=140&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Action","<?php echo tep_href_link('index.php', 'cPath=141&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Driving","<?php echo tep_href_link('index.php', 'cPath=142&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Fighting","<?php echo tep_href_link('index.php', 'cPath=143&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Hardware","<?php echo tep_href_link('index.php', 'cPath=144&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Platform","<?php echo tep_href_link('index.php', 'cPath=145&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Puzzle","<?php echo tep_href_link('index.php', 'cPath=146&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Racing","<?php echo tep_href_link('index.php', 'cPath=147&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Role Playing","<?php echo tep_href_link('index.php', 'cPath=148&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Sport","<?php echo tep_href_link('index.php', 'cPath=149&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Strategy","<?php echo tep_href_link('index.php', 'cPath=150&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["Accessories","", "", "", "", "", "", "9", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=151&', 'NONSSL'); ?>", "", "", "", "", "", "21", "", "", ], ["|DS","<?php echo tep_href_link('index.php', 'cPath=152&', 'NONSSL'); ?>", "", "", "", "", "", "21", "", "", ], ["|Game Boy Advance","<?php echo tep_href_link('index.php', 'cPath=153&', 'NONSSL'); ?>", "", "", "", "", "", "21", "", "", ], ["|Playstation 2","<?php echo tep_href_link('index.php', 'cPath=154&', 'NONSSL'); ?>", "", "", "", "", "", "21", "", "", ], ["|Playstation 3","<?php echo tep_href_link('index.php', 'cPath=155&', 'NONSSL'); ?>", "", "", "", "", "", "21", "", "", ], ["|PSP","<?php echo tep_href_link('index.php', 'cPath=156&', 'NONSSL'); ?>", "", "", "", "", "", "21", "", "", ], ["|Xbox","<?php echo tep_href_link('index.php', 'cPath=157&', 'NONSSL'); ?>", "", "", "", "", "", "21", "", "", ], ["|Xbox 360","<?php echo tep_href_link('index.php', 'cPath=158&', 'NONSSL'); ?>", "", "", "", "", "", "21", "", "", ], ["|Wii","<?php echo tep_href_link('index.php', 'cPath=159&', 'NONSSL'); ?>", "", "", "", "", "", "21", "", "", ], ["Console Bundles","", "", "", "", "", "", "10", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=160&', 'NONSSL'); ?>", "", "", "", "", "", "22", "", "", ], ["|Playstation 3","<?php echo tep_href_link('index.php', 'cPath=161&', 'NONSSL'); ?>", "", "", "", "", "", "22", "", "", ], ["|Xbox 360","<?php echo tep_href_link('index.php', 'cPath=162&', 'NONSSL'); ?>", "", "", "", "", "", "22", "", "", ], ["|Wii","<?php echo tep_href_link('index.php', 'cPath=163&', 'NONSSL'); ?>", "", "", "", "", "", "22", "", "", ], ["Coming Soon","<?php echo tep_href_link('index.php', 'cPath=164&', 'NONSSL'); ?>", "", "", "", "", "", "11", "", "", ], ]; dtree_init(); </script> Any help is really appreciated. Many thanks.
  3. Hi, Thanks for the reply. When i add a new product the script automatically adds it to the list, i need it to add the break to each new item just as it addes the picture, product title and price automatically. Is this what you mean? Thanks again.
  4. Hi, The code below is used by my oscommerce script to display a list of products on my webpage. You can view it at: http://www.game101.co.uk/index.php?cPath=22 Im trying to insert a 1px x 589px image to break up each item. Could somebody please help me insert this image after each product as my php knowlege is very limited. Many thanks. <?php /* $Id: product_listing.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ $listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_SEARCH_RESULTS, 'p.products_id'); if ( ($listing_split->number_of_rows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td> <td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> <?php } $list_box_contents = array(); for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { switch ($column_list[$col]) { case 'PRODUCT_LIST_MODEL': $lc_text = TABLE_HEADING_MODEL; $lc_align = ''; break; case 'PRODUCT_LIST_NAME': $lc_text = TABLE_HEADING_PRODUCTS; $lc_align = ''; break; case 'PRODUCT_LIST_MANUFACTURER': $lc_text = TABLE_HEADING_MANUFACTURER; $lc_align = ''; break; case 'PRODUCT_LIST_PRICE': $lc_text = TABLE_HEADING_PRICE; $lc_align = 'right'; break; case 'PRODUCT_LIST_QUANTITY': $lc_text = TABLE_HEADING_QUANTITY; $lc_align = 'right'; break; case 'PRODUCT_LIST_WEIGHT': $lc_text = TABLE_HEADING_WEIGHT; $lc_align = 'right'; break; case 'PRODUCT_LIST_IMAGE': $lc_text = TABLE_HEADING_IMAGE; $lc_align = 'center'; break; case 'PRODUCT_LIST_BUY_NOW': $lc_text = TABLE_HEADING_BUY_NOW; $lc_align = 'center'; break; } if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) { $lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text); } $list_box_contents[0][] = array('align' => $lc_align, 'params' => 'class="productListing-heading"', 'text' => ' ' . $lc_text . ' '); } if ($listing_split->number_of_rows > 0) { $rows = 0; $listing_query = tep_db_query($listing_split->sql_query); while ($listing = tep_db_fetch_array($listing_query)) { $rows++; if (($rows/2) == floor($rows/2)) { $list_box_contents[] = array('params' => 'class="productListing-even"'); } else { $list_box_contents[] = array('params' => 'class="productListing-odd"'); } $cur_row = sizeof($list_box_contents) - 1; for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { $lc_align = ''; switch ($column_list[$col]) { case 'PRODUCT_LIST_MODEL': $lc_align = ''; $lc_text = ' ' . $listing['products_model'] . ' '; break; case 'PRODUCT_LIST_NAME': $lc_align = ''; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> '; } break; case 'PRODUCT_LIST_MANUFACTURER': $lc_align = ''; $lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a> '; break; case 'PRODUCT_LIST_PRICE': $lc_align = 'right'; if (tep_not_null($listing['specials_new_products_price'])) { $lc_text = ' <s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> '; } else { $lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' '; } break; case 'PRODUCT_LIST_QUANTITY': $lc_align = 'right'; $lc_text = ' ' . $listing['products_quantity'] . ' '; break; case 'PRODUCT_LIST_WEIGHT': $lc_align = 'right'; $lc_text = ' ' . $listing['products_weight'] . ' '; break; case 'PRODUCT_LIST_IMAGE': $lc_align = 'center'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> '; } break; case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; break; } $list_box_contents[$cur_row][] = array('align' => $lc_align, 'params' => 'class="productListing-data"', 'text' => $lc_text); } } new productListingBox($list_box_contents); } else { $list_box_contents = array(); $list_box_contents[0] = array('params' => 'class="productListing-odd"'); $list_box_contents[0][] = array('params' => 'class="productListing-data"', 'text' => TEXT_NO_PRODUCTS); new productListingBox($list_box_contents); } if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td><!--displaying products 1 of 1--> <td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> <?php } ?>
  5. Hi, thanks for your help i really appreciate it. The code is below. Thanks again! var tstylesNames=["DS","Game Boy Advance","GameCube","Playstation 2","Playstation 3","PSP","Wii","Xbox","Xbox 360","Accessories","Console Bundles","Coming Soon","DS submenu","Game Boy Advance submenu","GameCube submenu","Playstation 2 submenu","Playstation 3 submenu","PSP submenu","Wii submenu","Xbox submenu","Xbox 360 submenu","Accessories submenu","Console Bundles submenu",]; var tXPStylesNames=[]; var tlevelDX=20; var texpanded=0; var texpandItemClick=1; var tcloseExpanded=1; var tcloseExpandedXP=0; var ttoggleMode=0; var tnoWrap=1; var titemTarget="_self"; var titemCursor="pointer"; var statusString="link"; var tblankImage=""; var tpathPrefix_img=""; var tpathPrefix_link=""; var tmenuWidth="182px"; var tmenuHeight="auto"; var tabsolute=1; var tleft="0px"; var ttop="1px"; var tfontStyle=""; var tfontColor=["",""]; var tfontDecoration=["none","none"]; var tfontColorDisabled=""; var tpressedFontColor=""; var tmenuBackColor="#FFFFFF"; var tmenuBackImage=""; var tmenuBorderColor="#FFFFFF"; var tmenuBorderWidth=0; var tmenuBorderStyle="none"; var titemAlign="left"; var titemHeight=27; var titemBackColor=["",""]; var titemBackImage=["",""]; var ticonWidth=0; var ticonHeight=0; var ticonAlign="left"; var texpandBtn=["","",""]; var texpandBtnW=0; var texpandBtnH=0; var texpandBtnAlign="left"; var tpoints=0; var tpointsImage=""; var tpointsVImage=""; var tpointsCImage=""; var tpointsBImage=""; var tfloatable=1; var tfloatIterations=10; var tfloatableX=1; var tfloatableY=1; var tmoveable=0; var tmoveHeight=12; var tmoveColor="#AA0000"; var tmoveImage=""; var tXPStyle=0; var tXPIterations=10; var tXPBorderWidth=0; var tXPBorderColor="#FFFFFF"; var tXPAlign="left"; var tXPTitleBackColor="#AFB1C3"; var tXPTitleBackImg=""; var tXPTitleLeft=""; var tXPTitleLeftWidth=0; var tXPIconWidth=0; var tXPIconHeight=""; var tXPMenuSpace=0; var tXPExpandBtn=["","","",""]; var tXPBtnWidth=0; var tXPBtnHeight=26; var tXPFilter=1; var tdynamic=0; var tajax=0; var tsaveState=0; var tsavePrefix="menu1"; var tstyles = [ ["titemBackImage=data.files/ds_normal.png,data.files/ds_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=data.files/gba_normal.png,data.files/gba_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=data.files/gamecube_normal.png,data.files/gamecube_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=data.files/ps2_normal.png,data.files/ps2_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=data.files/ps3_normal.png,data.files/ps3_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=data.files/psp_normal.png,data.files/psp_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=data.files/wii_normal.png,data.files/wii_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=data.files/xbox_normal.png,data.files/xbox_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=data.files/360_normal.png,data.files/360_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=data.files/accessories_normal.png,data.files/accessories_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=data.files/bundles_normal.png,data.files/bundles_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=data.files/soon_normal.png,data.files/soon_over.png","tfontStyle=bold 10.5pt Verdana","tfontColor=#005186,#FFFFFF","tfontDecoration=none,none"], ["titemBackImage=data.files/ds_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,none"], ["titemBackImage=data.files/gba_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,none"], ["titemBackImage=data.files/gamecube_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,"], ["titemBackImage=data.files/ps2_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,none"], ["titemBackImage=data.files/ps3_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,"], ["titemBackImage=data.files/psp_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,"], ["titemBackImage=data.files/wii_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,"], ["titemBackImage=data.files/xbox_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,none"], ["titemBackImage=data.files/360_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,none"], ["titemBackImage=data.files/accessories_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,none"], ["titemBackImage=data.files/bundles_submenu.png,","tfontStyle=normal 10pt verdana","tfontColor=#005186,#000000","tfontDecoration=none,none"], ]; var tXPStyles = [ ]; var tmenuItems = [ ["DS","", "", "", "", "", "", "0", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=21&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Action","<?php echo tep_href_link('index.php', 'cPath=22&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Activity","<?php echo tep_href_link('index.php', 'cPath=23&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Adventure","<?php echo tep_href_link('index.php', 'cPath=24&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Classic","<?php echo tep_href_link('index.php', 'cPath=25&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Fighting","<?php echo tep_href_link('index.php', 'cPath=26&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Hardware","<?php echo tep_href_link('index.php', 'cPath=27&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Platform","<?php echo tep_href_link('index.php', 'cPath=28&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Point and Click","<?php echo tep_href_link('index.php', 'cPath=29&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Puzzle","<?php echo tep_href_link('index.php', 'cPath=30&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Racing","<?php echo tep_href_link('index.php', 'cPath=31&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Role Playing","<?php echo tep_href_link('index.php', 'cPath=32&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Sport","<?php echo tep_href_link('index.php', 'cPath=33&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["|Strategy","<?php echo tep_href_link('index.php', 'cPath=34&', 'NONSSL'); ?>", "", "", "", "", "", "12", "", "", ], ["Game Boy Advance","", "", "", "", "", "", "1", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=35&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Action","<?php echo tep_href_link('index.php', 'cPath=36&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Activity","<?php echo tep_href_link('index.php', 'cPath=37&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Classic","<?php echo tep_href_link('index.php', 'cPath=38&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Driving","<?php echo tep_href_link('index.php', 'cPath=39&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Fighting","<?php echo tep_href_link('index.php', 'cPath=40&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Hardware","<?php echo tep_href_link('index.php', 'cPath=41&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Platform","<?php echo tep_href_link('index.php', 'cPath=42&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Puzzle","<?php echo tep_href_link('index.php', 'cPath=43&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Quiz","<?php echo tep_href_link('index.php', 'cPath=44&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Racing","<?php echo tep_href_link('index.php', 'cPath=45&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Role Playing","<?php echo tep_href_link('index.php', 'cPath=46&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Sport","<?php echo tep_href_link('index.php', 'cPath=47&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["|Strategy","<?php echo tep_href_link('index.php', 'cPath=48&', 'NONSSL'); ?>", "", "", "", "", "", "13", "", "", ], ["GameCube","", "", "", "", "", "", "2", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=49&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Action","<?php echo tep_href_link('index.php', 'cPath=50&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Activity","<?php echo tep_href_link('index.php', 'cPath=51&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Classic","<?php echo tep_href_link('index.php', 'cPath=52&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Driving","<?php echo tep_href_link('index.php', 'cPath=53&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Fighting","<?php echo tep_href_link('index.php', 'cPath=54&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Hardware","<?php echo tep_href_link('index.php', 'cPath=55&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Party","<?php echo tep_href_link('index.php', 'cPath=56&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Platform","<?php echo tep_href_link('index.php', 'cPath=57&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Puzzle","<?php echo tep_href_link('index.php', 'cPath=58&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Racing","<?php echo tep_href_link('index.php', 'cPath=59&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Role Playing","<?php echo tep_href_link('index.php', 'cPath=60&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Sport","<?php echo tep_href_link('index.php', 'cPath=61&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["|Strategy","<?php echo tep_href_link('index.php', 'cPath=62&', 'NONSSL'); ?>", "", "", "", "", "", "14", "", "", ], ["Playstation 2","", "", "", "", "", "", "3", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=63&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Action","<?php echo tep_href_link('index.php', 'cPath=64&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Activity","<?php echo tep_href_link('index.php', 'cPath=65&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Board Game","<?php echo tep_href_link('index.php', 'cPath=66&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Classic","<?php echo tep_href_link('index.php', 'cPath=67&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Driving","<?php echo tep_href_link('index.php', 'cPath=68&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Fighting","<?php echo tep_href_link('index.php', 'cPath=69&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Flight","<?php echo tep_href_link('index.php', 'cPath=70&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Hardware","<?php echo tep_href_link('index.php', 'cPath=71&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Lifestyle","<?php echo tep_href_link('index.php', 'cPath=72&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Music","<?php echo tep_href_link('index.php', 'cPath=73&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Party","<?php echo tep_href_link('index.php', 'cPath=74&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Platform","<?php echo tep_href_link('index.php', 'cPath=75&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Point and Click","<?php echo tep_href_link('index.php', 'cPath=76&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Puzzle","<?php echo tep_href_link('index.php', 'cPath=77&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Quiz","<?php echo tep_href_link('index.php', 'cPath=78&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Racing","<?php echo tep_href_link('index.php', 'cPath=79&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Role Playing","<?php echo tep_href_link('index.php', 'cPath=80&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Sport","<?php echo tep_href_link('index.php', 'cPath=81&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["|Strategy","<?php echo tep_href_link('index.php', 'cPath=82&', 'NONSSL'); ?>", "", "", "", "", "", "15", "", "", ], ["Playstation 3","", "", "", "", "", "", "4", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=83&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Action","<?php echo tep_href_link('index.php', 'cPath=84&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Activity","<?php echo tep_href_link('index.php', 'cPath=85&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Driving","<?php echo tep_href_link('index.php', 'cPath=86&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Fighting","<?php echo tep_href_link('index.php', 'cPath=87&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Flight","<?php echo tep_href_link('index.php', 'cPath=88&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Hardware","<?php echo tep_href_link('index.php', 'cPath=89&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Music","<?php echo tep_href_link('index.php', 'cPath=90&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Party","<?php echo tep_href_link('index.php', 'cPath=91&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Quiz","<?php echo tep_href_link('index.php', 'cPath=92&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Racing","<?php echo tep_href_link('index.php', 'cPath=93&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Role Playing","<?php echo tep_href_link('index.php', 'cPath=94&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Sport","<?php echo tep_href_link('index.php', 'cPath=95&', 'NONSSL'); ?>", "", "", "", "", "", "16", "", "", ], ["|Strategy","<?php echo tep_href_link('index.php', 'cPath=96&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["PSP","", "", "", "", "", "", "5", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=97&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["|Action","<?php echo tep_href_link('index.php', 'cPath=98&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["|Fighting","<?php echo tep_href_link('index.php', 'cPath=99&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["|Hardware","<?php echo tep_href_link('index.php', 'cPath=100&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["|Platform","<?php echo tep_href_link('index.php', 'cPath=101&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["|Puzzle","<?php echo tep_href_link('index.php', 'cPath=102&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["|Racing","<?php echo tep_href_link('index.php', 'cPath=103&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["|Role Playing","<?php echo tep_href_link('index.php', 'cPath=104&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["|Sport","<?php echo tep_href_link('index.php', 'cPath=105&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["|Strategy","<?php echo tep_href_link('index.php', 'cPath=106&', 'NONSSL'); ?>", "", "", "", "", "", "17", "", "", ], ["Wii","", "", "", "", "", "", "6", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=107&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Action","<?php echo tep_href_link('index.php', 'cPath=108&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Activity","<?php echo tep_href_link('index.php', 'cPath=109&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Adventure","<?php echo tep_href_link('index.php', 'cPath=110&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Classic","<?php echo tep_href_link('index.php', 'cPath=111&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Driving","<?php echo tep_href_link('index.php', 'cPath=112&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Fighting","<?php echo tep_href_link('index.php', 'cPath=113&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Hardware","<?php echo tep_href_link('index.php', 'cPath=114&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Party","<?php echo tep_href_link('index.php', 'cPath=115&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Platform","<?php echo tep_href_link('index.php', 'cPath=116&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Puzzle","<?php echo tep_href_link('index.php', 'cPath=117&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Racing","<?php echo tep_href_link('index.php', 'cPath=118&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Role Playing","<?php echo tep_href_link('index.php', 'cPath=119&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Sport","<?php echo tep_href_link('index.php', 'cPath=120&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["|Strategy","<?php echo tep_href_link('index.php', 'cPath=121&', 'NONSSL'); ?>", "", "", "", "", "", "18", "", "", ], ["Xbox","", "", "", "", "", "", "7", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=122&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Action","<?php echo tep_href_link('index.php', 'cPath=123&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Activity","<?php echo tep_href_link('index.php', 'cPath=124&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Classic","<?php echo tep_href_link('index.php', 'cPath=125&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Driving","<?php echo tep_href_link('index.php', 'cPath=127&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Fighting","<?php echo tep_href_link('index.php', 'cPath=128&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Flight","<?php echo tep_href_link('index.php', 'cPath=129&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Hardware","<?php echo tep_href_link('index.php', 'cPath=130&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Music","<?php echo tep_href_link('index.php', 'cPath=131&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Party","<?php echo tep_href_link('index.php', 'cPath=132&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Pinball","<?php echo tep_href_link('index.php', 'cPath=133&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Platform","<?php echo tep_href_link('index.php', 'cPath=134&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Puzzle","<?php echo tep_href_link('index.php', 'cPath=135&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Racing","<?php echo tep_href_link('index.php', 'cPath=136&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Role Playing","<?php echo tep_href_link('index.php', 'cPath=137&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Sport","<?php echo tep_href_link('index.php', 'cPath=138&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["|Strategy","<?php echo tep_href_link('index.php', 'cPath=139&', 'NONSSL'); ?>", "", "", "", "", "", "19", "", "", ], ["Xbox 360","", "", "", "", "", "", "8", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=140&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Action","<?php echo tep_href_link('index.php', 'cPath=141&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Driving","<?php echo tep_href_link('index.php', 'cPath=142&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Fighting","<?php echo tep_href_link('index.php', 'cPath=143&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Hardware","<?php echo tep_href_link('index.php', 'cPath=144&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Platform","<?php echo tep_href_link('index.php', 'cPath=145&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Puzzle","<?php echo tep_href_link('index.php', 'cPath=146&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Racing","<?php echo tep_href_link('index.php', 'cPath=147&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Role Playing","<?php echo tep_href_link('index.php', 'cPath=148&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Sport","<?php echo tep_href_link('index.php', 'cPath=149&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["|Strategy","<?php echo tep_href_link('index.php', 'cPath=150&', 'NONSSL'); ?>", "", "", "", "", "", "20", "", "", ], ["Accessories","", "", "", "", "", "", "9", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=151&', 'NONSSL'); ?>", "", "", "", "", "", "21", "", "", ], ["|DS","<?php echo tep_href_link('index.php', 'cPath=152&', 'NONSSL'); ?>", "", "", "", "", "", "21", "", "", ], ["|Game Boy Advance","<?php echo tep_href_link('index.php', 'cPath=153&', 'NONSSL'); ?>", "", "", "", "", "", "21", "", "", ], ["|Playstation 2","<?php echo tep_href_link('index.php', 'cPath=154&', 'NONSSL'); ?>", "", "", "", "", "", "21", "", "", ], ["|Playstation 3","<?php echo tep_href_link('index.php', 'cPath=155&', 'NONSSL'); ?>", "", "", "", "", "", "21", "", "", ], ["|PSP","<?php echo tep_href_link('index.php', 'cPath=156&', 'NONSSL'); ?>", "", "", "", "", "", "21", "", "", ], ["|Xbox","<?php echo tep_href_link('index.php', 'cPath=157&', 'NONSSL'); ?>", "", "", "", "", "", "21", "", "", ], ["|Xbox 360","<?php echo tep_href_link('index.php', 'cPath=158&', 'NONSSL'); ?>", "", "", "", "", "", "21", "", "", ], ["|Wii","<?php echo tep_href_link('index.php', 'cPath=159&', 'NONSSL'); ?>", "", "", "", "", "", "21", "", "", ], ["Console Bundles","", "", "", "", "", "", "10", "", "", ], ["|View All","<?php echo tep_href_link('index.php', 'cPath=160&', 'NONSSL'); ?>", "", "", "", "", "", "22", "", "", ], ["|Playstation 3","<?php echo tep_href_link('index.php', 'cPath=161&', 'NONSSL'); ?>", "", "", "", "", "", "22", "", "", ], ["|Xbox 360","<?php echo tep_href_link('index.php', 'cPath=162&', 'NONSSL'); ?>", "", "", "", "", "", "22", "", "", ], ["|Wii","<?php echo tep_href_link('index.php', 'cPath=163&', 'NONSSL'); ?>", "", "", "", "", "", "22", "", "", ], ["Coming Soon","<?php echo tep_href_link('index.php', 'cPath=164&', 'NONSSL'); ?>", "", "", "", "", "", "11", "", "", ], ]; dtree_init();
  6. Hi everyone. Im trying to convert tables to divs in dreamweaver cs3 however when i go to modify -> convert the selections are not clickable. Does anybody know why this is and how to make it clickable? Many thanks.
  7. Hi everyone, I have a peice of javascript that calls up and displays a menu on my site. Currently i have this javascript in an external file, with the link placed in the <body> so i can position the menu where i want in a <div> tag as follows: <html> <head> </head> <body> <div style="position:absolute; top:100px; left:100px;"><script type="text/javascript" src="$templatedir/menu.js"></script></div> </body> </html> The script i am workin with requires me to place all links to external files in the <head> of my pages. Is there a way i can place the link to the script in the <head> and still position the menu where i want it? Many thanks.
  8. Thanks i didnt think of that 1. Really though i need something that will max it out buy using visitors. I was going to pay for traffic to my site and max it out that way, thats why i think i need something on the homepage that will take up a lot of bandwidth, but dosent take to long to take up that bandwidth. Thanks
  9. Hi everyone. I have a hosting account with a bandwith usage limit of 100GB. For testing reasons i want to max this out fairly quickly (within a couple of days). Does anybody have any suggestions on how to do this without making my homepage loading times to long? Many thanks.
  10. Lee posted a topic in Frontend
    Hi, Does anybody know how to acomplish rotating items as on http://www.game.co.uk/, where you click the arrow left or right and the clickable image rotates. Many thanks.
  11. Hi everyone. When a link is clicked on my homepage, how do i make the page that loads jump to a following point. For example if you go to www.motocc.co.uk and click on one of their best selling items, it takes you halfway down the page to the product you have clicked on. Many thanks
  12. Hi everyone. Below is an example of the script i am using to check that credit card details entered are correct. However if you view the code in a browser you will notive that where you select the type of card it is a dropdown box. Does anybody have any ideas as to how to change these selections to clickable radio buttons? I know how to change the html form however i dont know how to alter the javascript to acompany it. Many thanks. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript"> function testCreditCard () { myCardNo = document.getElementById('CardNumber').value; myCardType = document.getElementsByName('CardType').value; if (checkCreditCard (myCardNo,myCardType)) { alert ("Credit card has a valid format") } else {alert (ccErrors[ccErrorNo])}; } </script> <script type="text/javascript"> /*============================================================================*/ /* This routine checks the credit card number. The following checks are made: 1. A number has been provided 2. The number is a right length for the card 3. The number has an appropriate prefix for the card 4. The number has a valid modulus 10 number check digit if required If the validation fails an error is reported. The structure of credit card formats was gleaned from a variety of sources on the web, although the best is probably on Wikepedia ("Credit card number"): http://en.wikipedia.org/wiki/Credit_card_number Parameters: cardnumber number on the card cardname name of card as defined in the card list below Author: John Gardner Date: 1st November 2003 Updated: 26th Feb. 2005 Additional cards added by request Updated: 27th Nov. 2006 Additional cards added from Wikipedia Updated: 18th Jan. 2008 Additional cards added from Wikipedia */ /* If a credit card number is invalid, an error reason is loaded into the global ccErrorNo variable. This can be be used to index into the global error string array to report the reason to the user if required: e.g. if (!checkCreditCard (number, name) alert (ccErrors(ccErrorNo); */ var ccErrorNo = 0; var ccErrors = new Array () ccErrors [0] = "Unknown card type"; ccErrors [1] = "No card number provided"; ccErrors [2] = "Credit card number is in invalid format"; ccErrors [3] = "Credit card number is invalid"; ccErrors [4] = "Credit card number has an inappropriate number of digits"; function checkCreditCard (cardnumber, cardname) { // Array to hold the permitted card characteristics var cards = new Array(); // Define the cards we support. You may add addtional card types. // Name: As in the selection box of the form - must be same as user's // Length: List of possible valid lengths of the card number for the card // prefixes: List of possible prefixes for the card // checkdigit Boolean to say whether there is a check digit cards [0] = {name: "Visa", length: "13,16", prefixes: "4", checkdigit: true}; cards [1] = {name: "MasterCard", length: "16", prefixes: "51,52,53,54,55", checkdigit: true}; cards [2] = {name: "DinersClub", length: "14,16", prefixes: "300,301,302,303,304,305,36,38,55", checkdigit: true}; cards [3] = {name: "CarteBlanche", length: "14", prefixes: "300,301,302,303,304,305,36,38", checkdigit: true}; cards [4] = {name: "AmEx", length: "15", prefixes: "34,37", checkdigit: true}; cards [5] = {name: "Discover", length: "16", prefixes: "6011,650", checkdigit: true}; cards [6] = {name: "JCB", length: "15,16", prefixes: "3,1800,2131", checkdigit: true}; cards [7] = {name: "enRoute", length: "15", prefixes: "2014,2149", checkdigit: true}; cards [8] = {name: "Solo", length: "16,18,19", prefixes: "6334, 6767", checkdigit: true}; cards [9] = {name: "Switch", length: "16,18,19", prefixes: "4903,4905,4911,4936,564182,633110,6333,6759", checkdigit: true}; cards [10] = {name: "Maestro", length: "16,18", prefixes: "5020,6", checkdigit: true}; cards [11] = {name: "VisaElectron", length: "16", prefixes: "417500,4917,4913", checkdigit: true}; // Establish card type var cardType = -1; for (var i=0; i<cards.length; i++) { // See if it is this card (ignoring the case of the string) if (cardname.toLowerCase () == cards.name.toLowerCase()) { cardType = i; break; } } // If card type not found, report an error if (cardType == -1) { ccErrorNo = 0; return false; } // Ensure that the user has provided a credit card number if (cardnumber.length == 0) { ccErrorNo = 1; return false; } // Now remove any spaces from the credit card number cardnumber = cardnumber.replace (/\s/g, ""); // Check that the number is numeric var cardNo = cardnumber var cardexp = /^[0-9]{13,19}$/; if (!cardexp.exec(cardNo)) { ccErrorNo = 2; return false; } // Now check the modulus 10 check digit - if required if (cards[cardType].checkdigit) { var checksum = 0; // running checksum total var mychar = ""; // next char to process var j = 1; // takes value of 1 or 2 // Process each digit one by one starting at the right var calc; for (i = cardNo.length - 1; i >= 0; i--) { // Extract the next digit and multiply by 1 or 2 on alternative digits. calc = Number(cardNo.charAt(i)) * j; // If the result is in two digits add 1 to the checksum total if (calc > 9) { checksum = checksum + 1; calc = calc - 10; } // Add the units element to the checksum total checksum = checksum + calc; // Switch the value of j if (j ==1) {j = 2} else {j = 1}; } // All done - if checksum is divisible by 10, it is a valid modulus 10. // If not, report an error. if (checksum % 10 != 0) { ccErrorNo = 3; return false; } } // The following are the card-specific checks we undertake. var LengthValid = false; var PrefixValid = false; var undefined; // We use these for holding the valid lengths and prefixes of a card type var prefix = new Array (); var lengths = new Array (); // Load an array with the valid prefixes for this card prefix = cards[cardType].prefixes.split(","); // Now see if any of them match what we have in the card number for (i=0; i<prefix.length; i++) { var exp = new RegExp ("^" + prefix); if (exp.test (cardNo)) PrefixValid = true; } // If it isn't a valid prefix there's no point at looking at the length if (!PrefixValid) { ccErrorNo = 3; return false; } // See if the length is valid for this card lengths = cards[cardType].length.split(","); for (j=0; j<lengths.length; j++) { if (cardNo.length == lengths[j]) LengthValid = true; } // See if all is OK by seeing if the length was valid. We only check the // length if all else was hunky dory. if (!LengthValid) { ccErrorNo = 4; return false; }; // The credit card is in the required format. return true; } /*============================================================================*/ </script> </head> <body> <form id="myform" action="" onsubmit="testCreditCard();"> <p style="margin-top: 10px;"><span style="color: #ff0000; margin-left: 20px;">Select credit card:</span> <select tabindex="11" id="CardType" style="margin-left: 10px;"> <option value="AmEx">American Express</option> <option value="CarteBlanche">Carte Blanche</option> <option value="DinersClub">Diners Club</option> <option value="Discover">Discover</option> <option value="EnRoute">enRoute</option> <option value="JCB">JCB</option> <option value="Maestro">Maestro</option> <option value="MasterCard">MasterCard</option> <option value="Solo">Solo</option> <option value="Switch">Switch</option> <option value="Visa">Visa</option> <option value="VisaElectron">Visa Electron</option> </select> <span style="color: #ff0000; margin-left: 20px;">Enter number: <input type="text" id="CardNumber" maxlength="24" size="24" style="margin-left: 10px;" /> <input name="submit" class="button" type="submit" style="position:absolute; bottom:67px; left:215px; width:94px; height:28px; border:none;" value="check" > </span></p> </form> </body> </html>
  13. I managed to solve the problem. All i did was simply add an !: if(!regex.test
  14. Hi everyone. On my website im using the script below to check that a form has been filled out correctly. However the script is not bringing up the alert when a character other than a letter or number is entered in the "username" field. Iv had a play around and i beleive it is because when the correct format is used to fill out the "password" field, it is returning true, stopping the rest of the script from running. Does anybody have any ideas how to fix this problem? Iv tried removing the return true; value from the password field but that does not work. My javascript knowlege is very limited so i dont know how to proceed any further. All help is greatly appreciated. Many thanks. <script type="text/javascript"> function doPasswordCheck() { var pw = document.getElementById('password').value; if (pw.length < 5 || document.getElementById('password').value == '') { alert('Password must be 5-12 characters'); return false; } var pw = document.getElementById('password').value; if (pw.length > 12 || document.getElementById('password').value == '') { alert('Password must be 5-12 characters'); return false; } var pw = document.getElementById('username').value; if (pw.length < 6 || document.getElementById('username').value == '') { alert('Username must be 6-12 characters'); return false; } var pw = document.getElementById('username').value; if (pw.length > 12 || document.getElementById('username').value == '') { alert('Username must be 5-12 characters'); return false; } var regex=/^[0-9A-Za-z]+$/; //^[a-zA-z]+$/ if(regex.test(document.getElementById('password').value)){ return true; } else { alert("Password must contain only numbers and letters") return false; } var regex=/^[0-9A-Za-z]+$/; //^[a-zA-z]+$/ if(regex.test(document.getElementById('username').value)){ return true; } else { alert("Username must contain only numbers and letters") return false; } } </script>
  15. Hi everybody, Been a while since i last posted on here. Does anyone know how to preload the entire contents of an image directory, as a pose to preloading images and listing each image individually? Many thanks

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.