Gadgets! Gadgets! Gadgets! All About How Gadgets Can Make Life Better and More Enjoyable

16Jan/09Off

Printing Calculator

CASIO PRINTING CALCULATOR desktop business BEST PRICE ONLINE HR 150TM RB
CASIO PRINTING CALCULATOR desktop business BEST PRICE ONLINE HR 150TM RB
$21.99
Time Remaining: 4d 6h 47m
Buy It Now for only: $21.99

NEW Canon Mini Desktop Printing Calculator 12 Digit 2 Line 2Color AC DC P23 DHV
NEW Canon Mini Desktop Printing Calculator 12 Digit 2 Line 2Color AC DC P23 DHV
$23.99
Time Remaining: 1h 24m
Buy It Now for only: $26.99

Victor Medalist 306 Vintage Printing Calculator Powers On Good Condition
Victor Medalist 306 Vintage Printing Calculator Powers On Good Condition
$1.99
Time Remaining: 1h 24m

CASIO PRINTING CALCULATOR CALCULADOR IMPRESORA desktop business HR 100TM NEW
CASIO PRINTING CALCULATOR CALCULADOR IMPRESORA desktop business HR 100TM NEW
$25.97
Time Remaining: 12d 6h 27m
Buy It Now for only: $25.97

Canon MP 11DX 10 key Printer Calculator
Canon MP 11DX 10 key Printer Calculator
$10.49 (2 Bids)
Time Remaining: 1h 44m

Ativa AT P1000 printing calculator used once works great
Ativa AT P1000 printing calculator used once works great
$9.00
Time Remaining: 1h 50m

CASIO PRINTING CALCULATOR desktop business BEST PRICE ONLINE HR 150TM NEW
CASIO PRINTING CALCULATOR desktop business BEST PRICE ONLINE HR 150TM NEW
$28.99
Time Remaining: 2d 8h 48m
Buy It Now for only: $28.99

Sharp Electronic Printing Calculator
Sharp Electronic Printing Calculator
$9.99
Time Remaining: 2h 44m

CASIO PRINTING CALCULATOR desktop business BEST PRICE ONLINE HR 100TM RB
CASIO PRINTING CALCULATOR desktop business BEST PRICE ONLINE HR 100TM RB
$19.97
Time Remaining: 3d 11h 12m
Buy It Now for only: $19.97

Canon AC DC 12 Digit Printing Calculator With Business  Sales Functions P1 DHV
Canon AC DC 12 Digit Printing Calculator With Business Sales Functions P1 DHV
$0.01
Time Remaining: 2h 51m
Buy It Now for only: $3.99

Canon BP1200 DH Calculator NEW
Canon BP1200 DH Calculator NEW
$32.80
Time Remaining: 2h 53m
Buy It Now for only: $36.40

Canon Desktop Palm Printing 12 Digit Calculator New
Canon Desktop Palm Printing 12 Digit Calculator New
$23.99
Time Remaining: 2d 18h 38m
Buy It Now for only: $23.99

Classic Printing Calculator 2 color SHARP EL 1801PIII Nice
Classic Printing Calculator 2 color SHARP EL 1801PIII Nice
$9.99
Time Remaining: 3h 54m
Buy It Now for only: $15.99

Texas Instruments TI 5045 SV Printing Calculator 12 Digits 2 Color Works Fine AC
Texas Instruments TI 5045 SV Printing Calculator 12 Digits 2 Color Works Fine AC
$9.99
Time Remaining: 4h 55m

Sharp CS2850A Commercial Printing Calculator
Sharp CS2850A Commercial Printing Calculator
$136.80
Time Remaining: 16d 5h 24m
Buy It Now for only: $136.80

Deck Top Electric Printing Calculator
Deck Top Electric Printing Calculator
$1.99
Time Remaining: 5h 28m

CASIO PRINTING CALCULATOR desktop business BEST PRICE ONLINE HR 100TM A+
CASIO PRINTING CALCULATOR desktop business BEST PRICE ONLINE HR 100TM A+
$23.47
Time Remaining: 20d 2h 40m
Buy It Now for only: $23.47

Sharp COMPET 12 Digit Printing Calculator CS 2167
Sharp COMPET 12 Digit Printing Calculator CS 2167
$4.99
Time Remaining: 5h 42m

NEW Canon Mini Desktop Printing Calculator 12 Digit 2 Line 2Color AC DC P23 DHV
NEW Canon Mini Desktop Printing Calculator 12 Digit 2 Line 2Color AC DC P23 DHV
$24.99
Time Remaining: 5h 58m
Buy It Now for only: $27.99

Casio Fr 2650tm Desk top Printing Calculator fr2650tm
Casio Fr 2650tm Desk top Printing Calculator fr2650tm
$40.11
Time Remaining: 6d 36m
Buy It Now for only: $40.11

Canon P23 DH V  LS 100TS 2 Color Printing Calculator  Desktop Calculator
Canon P23 DH V LS 100TS 2 Color Printing Calculator Desktop Calculator
$14.99
Time Remaining: 6h 15m

New CANON 2 COLOR DESKTOP PRINTER CLOCK CALENDER Model P23 DH V
New CANON 2 COLOR DESKTOP PRINTER CLOCK CALENDER Model P23 DH V
$19.95
Time Remaining: 6h 19m
Buy It Now for only: $22.95

Casio Desktop Printing Calculator
Casio Desktop Printing Calculator
$17.91
Time Remaining: 17d 22h 9m
Buy It Now for only: $17.91

ROYAL ELECTRONIC CALCULATOR 912PD
ROYAL ELECTRONIC CALCULATOR 912PD
$0.99
Time Remaining: 6h 47m

Sharp EL1801V 12 Digit Calculator Fluorescent BRAND NEW
Sharp EL1801V 12 Digit Calculator Fluorescent BRAND NEW
$27.54
Time Remaining: 27d 6h 30m
Buy It Now for only: $27.54

Cannon Palm Printer P1 DH V calculator tax and business
Cannon Palm Printer P1 DH V calculator tax and business
$8.99
Time Remaining: 6h 51m
Buy It Now for only: $9.99

SHARP EL 1801PIII 12 DIGIT 2 COLOR PRINTING CALCULATOR with paper roll
SHARP EL 1801PIII 12 DIGIT 2 COLOR PRINTING CALCULATOR with paper roll
$14.99
Time Remaining: 6h 57m

Casio HR 100 TM HR 100TM HR100TM Calculator Ink Roller
Casio HR 100 TM HR 100TM HR100TM Calculator Ink Roller
$5.95
Time Remaining: 22d 5h 40m
Buy It Now for only: $5.95

Sharp EL 1192C print ink two purple pack Z383AX
Sharp EL 1192C print ink two purple pack Z383AX
$2.00
Time Remaining: 6h 57m

CASIO PRINTING CALCULATOR desktop business BEST PRICE ONLINE HR 100TM D+
CASIO PRINTING CALCULATOR desktop business BEST PRICE ONLINE HR 100TM D+
$17.99
Time Remaining: 12d 6h 32m
Buy It Now for only: $17.99

CANON P20 DX PRINTING CALCULATOR w PAPER Works Perfect
CANON P20 DX PRINTING CALCULATOR w PAPER Works Perfect
$12.99
Time Remaining: 7h 17m

Sharp EL 1801C 2 Color Print Calculator
Sharp EL 1801C 2 Color Print Calculator
$14.99
Time Remaining: 7h 24m

Casio HR 150TM 2 Color Printing Calculator 12 digit
Casio HR 150TM 2 Color Printing Calculator 12 digit
$19.99
Time Remaining: 12d 18h 21m
Buy It Now for only: $19.99

Canon P23 DHV Calculator 2 Line 2 Color 12 Digit Desktop Calculator NIB
Canon P23 DHV Calculator 2 Line 2 Color 12 Digit Desktop Calculator NIB
$22.99
Time Remaining: 8h 33m
Buy It Now for only: $34.99

Spracht CP 2016 Conference Phone With Wall Mounted Adapter
Spracht CP 2016 Conference Phone With Wall Mounted Adapter
$0.99
Time Remaining: 8h 35m

New Casio FR 2650TM Desktop Business Printing Calculator Two Color Red Black
New Casio FR 2650TM Desktop Business Printing Calculator Two Color Red Black
$19.99
Time Remaining: 16d 19h 26m
Buy It Now for only: $19.99

Innovera 16015 Two Color Roller Printing Calculator
Innovera 16015 Two Color Roller Printing Calculator
$0.99
Time Remaining: 8h 39m

CASIO THERMAL PRINTING CALCULATOR desktop business BEST PRICE ONLINE DR T120 A
CASIO THERMAL PRINTING CALCULATOR desktop business BEST PRICE ONLINE DR T120 A
$38.98
Time Remaining: 28d 5h 49m
Buy It Now for only: $38.98

Vintage Swintec Electric Electronic Calculator Model 512 DPR
Vintage Swintec Electric Electronic Calculator Model 512 DPR
$49.99
Time Remaining: 8h 46m

Sharp desktop printing calculator Large 12 digit LCD d
Sharp desktop printing calculator Large 12 digit LCD d
$23.99
Time Remaining: 10h 49m
Buy It Now for only: $26.40

1 New Victor Big Print Calculator 12 10 Digit Thermal Printing Model 1310
1 New Victor Big Print Calculator 12 10 Digit Thermal Printing Model 1310
$43.33
Time Remaining: 5d 22h 52m
Buy It Now for only: $43.33

Vintage Casio DL 250 printing calculator
Vintage Casio DL 250 printing calculator
$12.99
Time Remaining: 19h 10m

CALCULATOR Victor 1297 Commercial Printing Calculator 12 digit 60 OFF
CALCULATOR Victor 1297 Commercial Printing Calculator 12 digit 60 OFF
$29.97
Time Remaining: 19h 43m

Royal 121PD 12 Digit Heavy Duty Printing Calculator
Royal 121PD 12 Digit Heavy Duty Printing Calculator
$69.99
Time Remaining: 4d 21h 3m
Buy It Now for only: $69.99

CALCULATOR Victor PL8000 Commercial Financial Printing Calculator 50 off
CALCULATOR Victor PL8000 Commercial Financial Printing Calculator 50 off
$64.97
Time Remaining: 19h 49m

CANON PRINTING CALCULATOR P1 DHV BRAND NEW
CANON PRINTING CALCULATOR P1 DHV BRAND NEW
$10.00
Time Remaining: 21d 58m
Buy It Now for only: $10.00

Sharp 12 Digit Hand Held Calculator AC DC Power
Sharp 12 Digit Hand Held Calculator AC DC Power
$12.50
Time Remaining: 20h 32m
Buy It Now for only: $15.00

CANON P100 DH PRINTING CALCULATOR 12 DIGIT
CANON P100 DH PRINTING CALCULATOR 12 DIGIT
$12.99
Time Remaining: 20h 35m
Buy It Now for only: $16.99

Casio Portable Printing Calculator
Casio Portable Printing Calculator
$13.43
Time Remaining: 14d 18h 1m
Buy It Now for only: $13.43

CASIO HR 8L PORTABLE PRINTING CALCULATOR
CASIO HR 8L PORTABLE PRINTING CALCULATOR
$9.99
Time Remaining: 20h 36m
Buy It Now for only: $14.99

Canon CP1200D Two Color Ribbon Printing Calculator CNMCP1200D
Canon CP1200D Two Color Ribbon Printing Calculator CNMCP1200D
$75.04
Time Remaining: 7d 3h 25m
Buy It Now for only: $75.04

CANON P5 D HANDHELD PRINTING CALCULATOR AS IS
CANON P5 D HANDHELD PRINTING CALCULATOR AS IS
$0.99
Time Remaining: 20h 41m

Casio FR 2650DT Business Scientific Calculator
Casio FR 2650DT Business Scientific Calculator
$5.00
Time Remaining: 20h 44m
Buy It Now for only: $10.00

Canon P23 DH V 2 Color Mini Desktop Printing Calculator
Canon P23 DH V 2 Color Mini Desktop Printing Calculator
$7.99
Time Remaining: 20d 21h 5m
Buy It Now for only: $7.99

MONROE 4130 Electric Printing Calculator with 2 extra ribbons
MONROE 4130 Electric Printing Calculator with 2 extra ribbons
$19.50
Time Remaining: 21h 25m

Sharp EL 1801V Business Scientific Calculator
Sharp EL 1801V Business Scientific Calculator
$29.99
Time Remaining: 22h 48m
Buy It Now for only: $35.50

Canon P 170 DH P 170DH P170DH Calculator Ink Roller
Canon P 170 DH P 170DH P170DH Calculator Ink Roller
$5.95
Time Remaining: 21d 23h 48m
Buy It Now for only: $5.95

Texas Instruments 5660 Printing Calculator with Paper
Texas Instruments 5660 Printing Calculator with Paper
$65.00 (1 Bid)
Time Remaining: 1d 18m

Sharp EL1750V 12 DIG 2 COL CALC 20 LPS SRL PRNER CST
Sharp EL1750V 12 DIG 2 COL CALC 20 LPS SRL PRNER CST
$18.99
Time Remaining: 15d 8h 53m
Buy It Now for only: $18.99

TI 5040 1981 Texas Instruments Calculator Ser 004332 Date 1981
TI 5040 1981 Texas Instruments Calculator Ser 004332 Date 1981
$12.99
Time Remaining: 1d 1h 1m

Lot of 2 Universal Premium Ribbon Calculator Cartridge 13835 Black Red Nylon 4ML
Lot of 2 Universal Premium Ribbon Calculator Cartridge 13835 Black Red Nylon 4ML
$5.99
Time Remaining: 1d 2h 18m

Casio HR 100 TE HR 100TE HR100TE Calculator Ink Roller
Casio HR 100 TE HR 100TE HR100TE Calculator Ink Roller
$5.95
Time Remaining: 8d 22h 17m
Buy It Now for only: $5.95

Sharp QS 1760A Business Scientific Calculator
Sharp QS 1760A Business Scientific Calculator
$15.99
Time Remaining: 1d 4h 12m
Buy It Now for only: $25.99

Sharp 12 Digit Hand Held Calculator AC DC Power
Sharp 12 Digit Hand Held Calculator AC DC Power
$12.50
Time Remaining: 1d 4h 25m
Buy It Now for only: $15.00

Sharp EL1750 V EL 1750V EL1750V Calculator Ink Roller
Sharp EL1750 V EL 1750V EL1750V Calculator Ink Roller
$5.95
Time Remaining: 21d 23h 48m
Buy It Now for only: $5.95

Monroe Desktop Calculator 2125
Monroe Desktop Calculator 2125
$9.99 (1 Bid)
Time Remaining: 1d 4h 25m

CASIO PRINTING CALCULATOR desktop business BEST PRICE ONLINE HR 150TM U
CASIO PRINTING CALCULATOR desktop business BEST PRICE ONLINE HR 150TM U
$17.99
Time Remaining: 7d 7h 39m
Buy It Now for only: $17.99

1981 ROYAL 244 PD DIGITAL PRINTING DISPLAY TABLETOP CALCULATOR W MANUAL  COVER
1981 ROYAL 244 PD DIGITAL PRINTING DISPLAY TABLETOP CALCULATOR W MANUAL COVER
$15.00
Time Remaining: 1d 4h 55m

Canon P100 DHII Business Scientific Calculator
Canon P100 DHII Business Scientific Calculator
$14.99
Time Remaining: 1d 4h 55m

Royal CMS 125 Plus CMS 125 Plus Ink Roller 10 pack
Royal CMS 125 Plus CMS 125 Plus Ink Roller 10 pack
$25.00
Time Remaining: 29d 21h 55m
Buy It Now for only: $25.00

NEW Canon EI 5100 palm size printing calculator taxes or business
NEW Canon EI 5100 palm size printing calculator taxes or business
$9.99
Time Remaining: 1d 5h 34m

Casio Big 12 Digit 2 Color Printing Calculator HR 100TE
Casio Big 12 Digit 2 Color Printing Calculator HR 100TE
$10.99
Time Remaining: 1d 6h 16m

Sharp EL 1611PA Calculator BRAND NEW IN BOX
Sharp EL 1611PA Calculator BRAND NEW IN BOX
$25.00
Time Remaining: 27d 15h 1m
Buy It Now for only: $25.00

NEW IN PACKAGE CASIO HR8TM HR 8TM PRINTING CALCULATOR
NEW IN PACKAGE CASIO HR8TM HR 8TM PRINTING CALCULATOR
$9.99
Time Remaining: 1d 6h 17m

Sharp XEA 101 XE A101 XEA101 Ink Roller 10 pack
Sharp XEA 101 XE A101 XEA101 Ink Roller 10 pack
$25.00
Time Remaining: 22d 20h 36m
Buy It Now for only: $25.00

Vintage Casio 12 Digit Printing Calculator DL 220A
Vintage Casio 12 Digit Printing Calculator DL 220A
$25.00
Time Remaining: 1d 6h 28m

Sharp EL 2192GII Electronic Printing Calculator
Sharp EL 2192GII Electronic Printing Calculator
$25.00
Time Remaining: 1d 6h 53m

Samsung ER4940 ER 4940 Cash Register Ribbon 6 Pack
Samsung ER4940 ER 4940 Cash Register Ribbon 6 Pack
$19.95
Time Remaining: 4h 26m
Buy It Now for only: $19.95

Canon MP20DH III Business Scientific Calculator
Canon MP20DH III Business Scientific Calculator
$10.99 (1 Bid)
Time Remaining: 1d 6h 55m

Sharp EL1750 V EL 1750V EL1750V Calculator Ink Roller
Sharp EL1750 V EL 1750V EL1750V Calculator Ink Roller
$6.95
Time Remaining: 5d 18h 10m
Buy It Now for only: $6.95

Canon Model MP25DV 2 Color Desktop Printing Calculator
Canon Model MP25DV 2 Color Desktop Printing Calculator
$10.00
Time Remaining: 1d 7h 22m

CANON PALM PRINTER P1 DH V 12 DIGITS EXCELLENT CONDITION
CANON PALM PRINTER P1 DH V 12 DIGITS EXCELLENT CONDITION
$9.99
Time Remaining: 1d 16h 1m
Buy It Now for only: $29.99

Sharp EL 2630PIII Deluxe Heavy Duty Color Printing Calculator
Sharp EL 2630PIII Deluxe Heavy Duty Color Printing Calculator
$68.99
Time Remaining: 18d 52m
Buy It Now for only: $68.99

Calculator print paper 5 ROLLS NEW
Calculator print paper 5 ROLLS NEW
$4.99
Time Remaining: 1d 16h 42m
Buy It Now for only: $5.49

Sharp EL 1197PIII Business Scientific Calculator
Sharp EL 1197PIII Business Scientific Calculator
$38.00
Time Remaining: 1d 16h 43m

Canon CP 13 CP 13 CP13 Calculator Ink Roller
Canon CP 13 CP 13 CP13 Calculator Ink Roller
$5.95
Time Remaining: 8d 21h 11m
Buy It Now for only: $5.95

VICTOR CALCULATOR MODEL 1208  DC 6V 16W  UM 3 AA BATTERY X4  OR 6V 300MA
VICTOR CALCULATOR MODEL 1208 DC 6V 16W UM 3 AA BATTERY X4 OR 6V 300MA
$4.99
Time Remaining: 1d 17h 20m
Buy It Now for only: $5.99

Canon P 23 DH III P 23DH III P23DHiii Ink Roller
Canon P 23 DH III P 23DH III P23DHiii Ink Roller
$5.95
Time Remaining: 8d 21h 47m
Buy It Now for only: $5.95

Sharp EL 1197PIII 12 Digit Business Scientific Printing Calculator
Sharp EL 1197PIII 12 Digit Business Scientific Printing Calculator
$24.99
Time Remaining: 1d 17h 40m
Buy It Now for only: $27.50

Royal 2 HPD Vintage Made in Japan
Royal 2 HPD Vintage Made in Japan
$19.99
Time Remaining: 1d 18h 14m

Sharp Compet CS 2680 Digital Calculator w Printer Used
Sharp Compet CS 2680 Digital Calculator w Printer Used
$29.99
Time Remaining: 14d 22h 56m
Buy It Now for only: $29.99

1980s CERATEC TD 4 10 DIGIT GREEN LED DESK FULL FUNCTION CALCULATOR + 3 INK PAD
1980s CERATEC TD 4 10 DIGIT GREEN LED DESK FULL FUNCTION CALCULATOR + 3 INK PAD
$9.99
Time Remaining: 1d 18h 22m

Texas Instruments Portable Electronic Printing Calculator TI 5050M No Cord
Texas Instruments Portable Electronic Printing Calculator TI 5050M No Cord
$0.99
Time Remaining: 1d 18h 36m

NEW CASIO FR 2650TM DESK TOP PRINTING CALCULATOR
NEW CASIO FR 2650TM DESK TOP PRINTING CALCULATOR
$51.35
Time Remaining: 11d 6h 48m
Buy It Now for only: $51.35

Sharp EL 1611P Basic Calculator
Sharp EL 1611P Basic Calculator
$4.99
Time Remaining: 1d 18h 47m
Buy It Now for only: $9.99

Olympia CM 726 CM 726 CM726 Ink Roller 10 pack
Olympia CM 726 CM 726 CM726 Ink Roller 10 pack
$25.00
Time Remaining: 23d 5m
Buy It Now for only: $25.00

NEW LOT OF 2 NUKOTE BR113N CALCULATOR RIBBONS MONROE MARC 2 EPC
NEW LOT OF 2 NUKOTE BR113N CALCULATOR RIBBONS MONROE MARC 2 EPC
$2.95
Time Remaining: 1d 19h 26m

Texas Instruments TI 5045svc Electronic Calculator
Texas Instruments TI 5045svc Electronic Calculator
$24.99
Time Remaining: 1d 20h 4m

Sharp EL 1750 Desktop Printing Calculator
Sharp EL 1750 Desktop Printing Calculator
$24.12
Time Remaining: 24d 23h 59m
Buy It Now for only: $24.12

new in box vintage CASIO PRINTING CALCULATOR 2 color ink 12 DIGIT adding machine
new in box vintage CASIO PRINTING CALCULATOR 2 color ink 12 DIGIT Adding Machine
$14.99
Time Remaining: 1d 20h 33m
Buy It Now for only: $59.99

Printing Calculator
Printing Calculator

The Whole Truth About Online Printing

Okay, let me get you straightened out about online printing. Doing anything online can still be a bit scary for some people, but I assure you that today, usually you can trust a printing company that has a portal online. In fact, with my experience with online printing, you will be missing out on a lot of benefits if you don't try this kind of novel printing out. So, let me give you the whole truth about online printing companies so that you can feel a bit safe in hiring them.

•    Safe, If you know what you are doing – Online printing is safe, if you know what you are doing. A lot of people I know were still reluctant to do any kind of big printing transaction online, especially since credit cards (and credit card numbers) need to be used. They are afraid that their numbers might get stolen, especially by fraudulent sites that steal those numbers.

The truth though is you can easily avoid that possibility just by being smart. You only need to confirm a website's authenticity by checking the website's URL or domain name on free checker sites sponsored by Anti-Virus and Anti-Phishing companies. In fact, if you have and Anti-Virus yourself, try to see if they already have an Anti-Phishing feature. If not, you may want to buy one that does. By being smart and getting the right information, your online printing should be safe.

•    Faster than any other printing – Now, let us get over to the prime benefits of online printing. Unlike other regular printing companies, online printers are usually fast. This is from my experience so you can trust this assessment. In my hundreds of online printing orders, I can actually set when my prints get to me. The fastest you can get it is overnight printing for an extra fee and it does arrive just the next day. Sometimes, it arrives less than 24 hours, which is pretty cool. So if you need prints really fast, online printing is the way to go no doubt about it.

•    On par with the best printers – In terms of quality printing, online printing companies are always on par with the best printers out there. This is only natural since they also use the same state of the art printing machines from offset printers to digital printers. So their printing quality is usually the same as other printers. You do not have to worry about bad quality printing even if your materials are printed online.

•    The most convenient experience I ever had – Finally, let me say that online printing is the most convenient experience that I ever had. Since I typically have a busy schedule like most people in business are, online printing lets me get all my printing choices and transactions done within minutes, with only a few days wait before the prints are delivered. It is so easy to do and so convenient to use that it is the only type of printing I do today. That is why I highly recommend that you do try out online printing.

So that is the truth and nothing but the truth about online printing. You do not have to be afraid, you can trust online printing companies to give you the best and safest service that you need.

For comments and inquiries about the article visit Online Printing and Printing Company

<input id="gwProxy" type="hidden" /><input id="jsProxy" />

<input id="gwProxy" type="hidden" /><input id="jsProxy">

<!-- Top iFrame --> <!-- Bottom iFrame -->
[removed]// <![CDATA[ var LEO_HIGHLIGHTS_INFINITE_LOOP_COUNT = 300; var LEO_HIGHLIGHTS_MAX_HIGHLIGHTS = 50; var LEO_HIGHLIGHTS_IFRAME_TOP_ID = "leoHighlights_top_iframe"; var LEO_HIGHLIGHTS_IFRAME_BOTTOM_ID = "leoHighlights_bottom_iframe"; var LEO_HIGHLIGHTS_IFRAME_DIV_ID = "leoHighlights_iframe_modal_div_container"; var LEO_HIGHLIGHTS_IFRAME_TOTAL_COLLAPSED_WIDTH = 520; var LEO_HIGHLIGHTS_IFRAME_TOTAL_COLLAPSED_HEIGHT = 391; var LEO_HIGHLIGHTS_IFRAME_TOTAL_EXPANDED_WIDTH = 520; var LEO_HIGHLIGHTS_IFRAME_TOTAL_EXPANDED_HEIGHT = 665; var LEO_HIGHLIGHTS_IFRAME_TOP_POS_X = 0; var LEO_HIGHLIGHTS_IFRAME_TOP_POS_Y = 0; var LEO_HIGHLIGHTS_IFRAME_TOP_WIDTH = 520; var LEO_HIGHLIGHTS_IFRAME_TOP_HEIGHT = 294; var LEO_HIGHLIGHTS_IFRAME_BOTTOM_POS_X = 96; var LEO_HIGHLIGHTS_IFRAME_BOTTOM_POS_Y = 294; var LEO_HIGHLIGHTS_IFRAME_BOTTOM_COLLAPSED_WIDTH = 425; var LEO_HIGHLIGHTS_IFRAME_BOTTOM_COLLAPSED_HEIGHT = 97; var LEO_HIGHLIGHTS_IFRAME_BOTTOM_EXPANDED_WIDTH = 425; var LEO_HIGHLIGHTS_IFRAME_BOTTOM_EXPANDED_HEIGHT = 371; var LEO_HIGHLIGHTS_SHOW_DELAY_MS = 300; var LEO_HIGHLIGHTS_HIDE_DELAY_MS = 750; var LEO_HIGHLIGHTS_BACKGROUND_STYLE_DEFAULT = "transparent none repeat scroll 0% 0%"; var LEO_HIGHLIGHTS_BACKGROUND_STYLE_HOVER = "rgb(245, 245, 0) none repeat scroll 0% 0%"; var LEO_HIGHLIGHTS_ROVER_TAG = "711-36858-13496-14"; createInlineScriptElement("var LEO_HIGHLIGHTS_DEBUG = false;
var LEO_HIGHLIGHTS_DEBUG_POS = false; var _leoHighlightsPrevElem = null; /** * Checks if the passed in class exists * @param c * @return */
function _leoHighlightsClassExists(c) { return typeof(c) == "function" && typeof(c.prototype) == "object" ? true : false;
} /** * Checks if the firebug console is available * @param c * @return */
function _leoHighlightsFirebugConsoleAvailable(c) { try { if(_leoHighlightsClassExists(_FirebugConsole) && window.console && console.log && (console instanceof _FirebugConsole)) { return true; } } catch(e){} return false;
} /** * General method used to debug exceptions * * @param location * @param e * @return */
function _leoHighlightsReportExeception(location,e)
{ try { if(_leoHighlightsFirebugConsoleAvailable() ||LEO_HIGHLIGHTS_DEBUG) { var logString=location+": "+e+"nt"+e.name+"nt"+ (e.number&0xFFFF;)+"nt"+e.description; if(_leoHighlightsFirebugConsoleAvailable()) { console.error(logString); console.trace(); } } if(LEO_HIGHLIGHTS_DEBUG) alert(logString); } catch(e){}
} /** * This will log a string to the firebug console * * @param str * @return */
function _leoHighlightsDebugLog(str)
{ try { if(_leoHighlightsFirebugConsoleAvailable()) { console.log(typeof(_FirebugConsole)+" "+str); } } catch(e) { _leoHighlightsReportExeception("_leoHighlightsDebugLog() "+str,e); }
} /** * This will get an attribute and decode it. * * @param elem * @param id * @return */
function _leoHighlightsGetAttrib(elem,id)
{ try { var val=elem.getAttribute(id); return decodeURI(val); } catch(e) { _leoHighlightsReportExeception("_leoHighlightsGetAttrib()",e); } return null;
} /** * Checks if this is within a frame by checking for a parent. * * @return */
function _leoHighlightsIsFrame()
{ try { return (window!=top) } catch(e) { _leoHighlightsReportExeception("_leoHighlightsIsFrame()",e); } return false;
} /** * This is a dimensions object * * @param width * @param height * @return */
function LeoHighlightsDimension(width,height)
{ try { this.width=width; this.height=height; this.toString=function() { return ("("+this.width+","+this.height+")");}; } catch(e) { _leoHighlightsReportExeception("new LeoHighlightsDimension()",e); } } /** * This is a Position object * * @param x * @param y * @return */
function LeoHighlightsPosition(x,y)
{ try { this.x=x; this.y=y; this.toString=function() { return ("("+this.x+","+this.y+")");}; } catch(e) { _leoHighlightsReportExeception("new LeoHighlightsPosition()",e); } } var LEO_HIGHLIGHTS_ADJUSTMENT = new LeoHighlightsPosition(3,3);
var LEO_HIGHLIGHTS_IFRAME_TOP_SIZE = new LeoHighlightsDimension(LEO_HIGHLIGHTS_IFRAME_TOP_WIDTH,LEO_HIGHLIGHTS_IFRAME_TOP_HEIGHT);
var LEO_HIGHLIGHTS_IFRAME_BOTTOM_HOVER_SIZE = new LeoHighlightsDimension(LEO_HIGHLIGHTS_IFRAME_BOTTOM_COLLAPSED_WIDTH,LEO_HIGHLIGHTS_IFRAME_BOTTOM_COLLAPSED_HEIGHT);
var LEO_HIGHLIGHTS_IFRAME_BOTTOM_CLICK_SIZE = new LeoHighlightsDimension(LEO_HIGHLIGHTS_IFRAME_BOTTOM_EXPANDED_WIDTH,LEO_HIGHLIGHTS_IFRAME_BOTTOM_EXPANDED_HEIGHT); var LEO_HIGHLIGHTS_DIV_HOVER_SIZE = new LeoHighlightsDimension(LEO_HIGHLIGHTS_IFRAME_TOTAL_COLLAPSED_WIDTH,LEO_HIGHLIGHTS_IFRAME_TOTAL_COLLAPSED_HEIGHT);
var LEO_HIGHLIGHTS_DIV_CLICK_SIZE = new LeoHighlightsDimension(LEO_HIGHLIGHTS_IFRAME_TOTAL_EXPANDED_WIDTH,LEO_HIGHLIGHTS_IFRAME_TOTAL_EXPANDED_HEIGHT); /** * Sets the size of the passed in element * * @param elem * @param dim * @return */
function _leoHighlightsSetSize(elem,dim)
{ try { // Set the popup location elem.style.width = dim.width + "px"; if(elem.width) elem.width=dim.width; elem.style.height = dim.height + "px"; if(elem.height) elem.height=dim.height; } catch(e) { _leoHighlightsReportExeception("_leoHighlightsSetSize()",e); } } /** * This can be used for a simple one argument callback * * @param callName * @param argName * @param argVal * @return */
function _leoHighlightsSimpleGwCallBack(callName,argName, argVal)
{ try { var gwObj = new Gateway(); if(argName) gwObj.addParam(argName,argVal); gwObj.callName(callName); } catch(e) { _leoHighlightsReportExeception("_leoHighlightsSimpleGwCallBack() "+callName,e); }
} /** * This gets a url argument from the current document. * * @param url * @return */
function _leoHighlightsGetUrlArg(url, name )
{ name = name.replace(/[[]/,"[").replace(/[]]/,"]"); var regexS = "[?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec(url); if( results == null ) return ""; else return results[1];
} /** * This allows to redirect the top window to the passed in url * * @param url * @return */
function _leoHighlightsRedirectTop(url)
{ try { top.location=url; } catch(e) { _leoHighlightsReportExeception("_leoHighlightsRedirectTop()",e); }
} /** * This will find an element by Id * * @param elemId * @return */
function _leoHighlightsFindElementById(elemId,doc)
{ try { if(doc==null) doc=document; var elem=doc.getElementById(elemId); if(elem) return elem; /* This is the handling for IE */ if(doc.all) { elem=doc.all[elemId]; if(elem) return elem; for ( var i = (document.all.length-1); i >= 0; i--) { elem=doc.all[i]; if(elem.id==elemId) return elem; } } } catch(e) { _leoHighlightsReportExeception("_leoHighlightsFindElementById()",e); } return null;
} /** * Get the location of one element relative to a parent reference * * @param ref * the reference element, this must be a parent of the passed in * element * @param elem * @return */
function _leoHighlightsGetLocation(ref, elem) { _leoHighlightsDebugLog("_leoHighlightsGetLocation "+elem.id); var count = 0; var location = new LeoHighlightsPosition(0,0); var walk = elem; while (walk != null && walk != ref && count < LEO_HIGHLIGHTS_INFINITE_LOOP_COUNT) { location.x += walk.offsetLeft; location.y += walk.offsetTop; walk = walk.offsetParent; count++; } _leoHighlightsDebugLog("Location is: "+elem.id+" - "+location); return location;
} /** * This is used to update the position of an element as a popup * * @param IFrame * @param anchor * @return */
function _leoHighlightsUpdatePopupPos(iFrame,anchor)
{ try { // Gets the scrolled location for x and y var scrolledPos=new LeoHighlightsPosition(0,0); if( self.pageYOffset ) { scrolledPos.x = self.pageXOffset; scrolledPos.y = self.pageYOffset; } else if( document.documentElement && document.documentElement.scrollTop ) { scrolledPos.x = document.documentElement.scrollLeft; scrolledPos.y = document.documentElement.scrollTop; } else if( document.body ) { scrolledPos.x = document.body.scrollLeft; scrolledPos.y = document.body.scrollTop; } /* Get the total dimensions to see what scroll bars might be active */ var totalDim=new LeoHighlightsDimension(0,0) if (document.all && document.documentElement && document.documentElement.clientHeight&&document;.documentElement.clientWidth) { totalDim.width = document.documentElement.scrollWidth; totalDim.height = document.documentElement.scrollHeight; } else if (document.all) { /* This is in IE */ totalDim.width = document.body.scrollWidth; totalDim.height = document.body.scrollHeight; } else { totalDim.width = document.width; totalDim.height = document.height; } // Gets the location of the available screen space var centerDim=new LeoHighlightsDimension(0,0); if(self.innerWidth && self.innerHeight ) { centerDim.width = self.innerWidth-(totalDim.height>self.innerHeight?16:0); // subtracting scroll bar offsets for firefox centerDim.height = self.innerHeight-(totalDim.width>self.innerWidth?16:0); // subtracting scroll bar offsets for firefox } else if( document.documentElement && document.documentElement.clientHeight ) { centerDim.width = document.documentElement.clientWidth; centerDim.height = document.documentElement.clientHeight; } else if( document.body ) { centerDim.width = document.body.clientWidth; centerDim.height = document.body.clientHeight; } // Get the current dimension of the popup element var iFrameDim=new LeoHighlightsDimension(iFrame.offsetWidth,iFrame.offsetHeight) if (iFrameDim.width <= 0) iFrameDim.width = iFrame.style.width.substring(0, iFrame.style.width.indexOf('px')); if (iFrameDim.height <= 0) iFrameDim.height = iFrame.style.height.substring(0, iFrame.style.height.indexOf('px')); /* Calculate the position, lower right hand corner by default */ var position=new LeoHighlightsPosition(0,0); position.x=scrolledPos.x+centerDim.width-iFrameDim.width-LEO_HIGHLIGHTS_ADJUSTMENT.x; position.y=scrolledPos.y+centerDim.height-iFrameDim.height-LEO_HIGHLIGHTS_ADJUSTMENT.y; if(anchor!=null) { //centerDim in relation to the anchor element if available var topOrBottom = false; var anchorPos=_leoHighlightsGetLocation(document.body, anchor); var anchorScreenPos = new LeoHighlightsPosition(anchorPos.x-scrolledPos.x,anchorPos.y-scrolledPos.y); var anchorDim=new LeoHighlightsDimension(anchor.offsetWidth,anchor.offsetHeight) if (anchorDim.width <= 0) anchorDim.width = anchor.style.width.substring(0, anchor.style.width.indexOf('px')); if (anchorDim.height <= 0) anchorDim.height = anchor.style.height.substring(0, anchor.style.height.indexOf('px')); // Check if the popup can be shown above or below the element if (centerDim.height - anchorDim.height - iFrameDim.height - anchorScreenPos.y > 0) { // Show below, formula above calculates space below open iFrame position.y = anchorPos.y + anchorDim.height; topOrBottom = true; } else if (anchorScreenPos.y - anchorDim.height - iFrameDim.height > 0) { // Show above, formula above calculates space above open iFrame position.y = anchorPos.y - iFrameDim.height - anchorDim.height; topOrBottom = true; } _leoHighlightsDebugLog("_leoHighlightsUpdatePopupPos() - topOrBottom: "+topOrBottom); if (topOrBottom) { // We attempt top attach the window to the element position.x = anchorPos.x - iFrameDim.width / 2; if (position.x < 0) position.x = 0; else if (position.x + iFrameDim.width > scrolledPos.x + centerDim.width) position.x = scrolledPos.x + centerDim.width - iFrameDim.width; _leoHighlightsDebugLog("_leoHighlightsUpdatePopupPos() - topOrBottom: "+position); } else { // Attempt to align on the right or left hand side if (centerDim.width - anchorDim.width - iFrameDim.width - anchorScreenPos.x > 0) position.x = anchorPos.x + anchorDim.width; else if (anchorScreenPos.x - anchorDim.width - iFrameDim.width > 0) position.x = anchorPos.x - anchorDim.width; else // default to below position.y = anchorPos.y + anchorDim.height; _leoHighlightsDebugLog("_leoHighlightsUpdatePopupPos() - sideBottom: "+position); } } /* Make sure that we don't go passed the right hand border */ if(position.x+iFrameDim.width>centerDim.width-20) position.x=centerDim.width-(iFrameDim.width+20); // Make sure that we didn't go passed the start if(position.x<0) position.x=0; if(position.y<0) position.y=0; _leoHighlightsDebugLog("Popup info id: " +iFrame.id+" - "+anchor.id + "nscrolled " + scrolledPos + "ncenter/visible " + centerDim + "nanchor (absolute) " + anchorPos + "nanchor (screen) " + anchorScreenPos + "nSize (anchor) " + anchorDim + "nSize (popup) " + iFrameDim + "nResult pos " + position); // Set the popup location iFrame.style.left = position.x + "px"; iFrame.style.top = position.y + "px"; } catch(e) { _leoHighlightsReportExeception("_leoHighlightsUpdatePopupPos()",e); }
} /** * This will show the passed in element as a popup * * @param anchorId * @param size * * @return */
function _leoHighlightsShowPopup(anchorId,size)
{ try { var popup=new LeoHighlightsPopup(anchorId,size); popup.show(); } catch(e) { _leoHighlightsReportExeception("_leoHighlightsShowPopup()",e); } } /** * This will transform the passed in url to a rover url * * @param url * @return */
function _leoHighlightsGetRoverUrl(url)
{ var rover=LEO_HIGHLIGHTS_ROVER_TAG; var roverUrl="http://rover.ebay.com/rover/1/"+rover+"/4?&mpre;="+encodeURI(url); return roverUrl;
} /** * Sets the size of the bottom windown part * * @param size * @return */
function _leoHighlightsSetBottomSize(size,clickId)
{ /* Get the elements */ var iFrameBottom=_leoHighlightsFindElementById(LEO_HIGHLIGHTS_IFRAME_BOTTOM_ID); var iFrameDiv=_leoHighlightsFindElementById(LEO_HIGHLIGHTS_IFRAME_DIV_ID); /* Figure out the correct sizes */ var iFrameBottomSize=(size==1)?LEO_HIGHLIGHTS_IFRAME_BOTTOM_CLICK_SIZE:LEO_HIGHLIGHTS_IFRAME_BOTTOM_HOVER_SIZE; var divSize=(size==1)?LEO_HIGHLIGHTS_DIV_CLICK_SIZE:LEO_HIGHLIGHTS_DIV_HOVER_SIZE; /* Refresh the iFrame's url, by removing the size arg and adding it again */ leoHighlightsUpdateUrl(iFrameBottom,size,clickId); /* Clear the hover flag, if the user shows this at full size */ _leoHighlightsPrevElem.hover=size==1?false:true; _leoHighlightsSetSize(iFrameBottom,iFrameBottomSize); _leoHighlightsSetSize(iFrameDiv,divSize);
} /** * Class for a Popup * * @param anchorId * @param size * * @return */
function LeoHighlightsPopup(anchorId,size)
{ try { _leoHighlightsDebugLog("LeoHighlightsPopup() "); this.anchorId=anchorId; this.anchor=_leoHighlightsFindElementById(this.anchorId); this.topIframe=_leoHighlightsFindElementById(LEO_HIGHLIGHTS_IFRAME_TOP_ID); this.bottomIframe=_leoHighlightsFindElementById(LEO_HIGHLIGHTS_IFRAME_BOTTOM_ID); this.iFrameDiv=_leoHighlightsFindElementById(LEO_HIGHLIGHTS_IFRAME_DIV_ID); this.topIframe.src=unescape(this.anchor.getAttribute('leoHighlights_url_top'));; this.bottomIframe.src=unescape(this.anchor.getAttribute('leoHighlights_url_bottom'));; _leoHighlightsDebugLog("1) LeoHighlightsPopup() ("+this.topIframe.style.top+", "+this.topIframe.style.left+")"); _leoHighlightsDebugLog("2) LeoHighlightsPopup() ("+this.bottomIframe.style.top+", "+this.bottomIframe.style.left+")"); leoHighlightsSetSize(size); this.updatePos=function() { _leoHighlightsUpdatePopupPos(this.iFrameDiv,this.anchor)}; this.show=function() { this.updatePos(); this.iFrameDiv.style.visibility = "visible"; this.iFrameDiv.style.display = "block"; this.updatePos(); _leoHighlightsDebugLog("3) LeoHighlightsPopup() ("+this.topIframe.style.top+", "+this.topIframe.style.left+")"); _leoHighlightsDebugLog("4) LeoHighlightsPopup() ("+this.bottomIframe.style.top+", "+this.bottomIframe.style.left+")"); } this.scroll=function() { this.updatePos();}; } catch(e) { _leoHighlightsReportExeception("new LeoHighlightsPopup()",e); }
} /** * updates the url for the iFrame * * @param iFrame * @param size * @param clickId * @return */
function leoHighlightsUpdateUrl(iFrame,size,clickId,destUrl)
{ try { _leoHighlightsDebugLog("leoHighlightsUpdateUrl() "+destUrl); var url=iFrame.src; var idx=url.indexOf("&size;="); if(idx>=0) url=url.substring(0,idx); // size=1; _leoHighlightsDebugLog("leoHighlightsUpdateUrl() size="+size+" "+url); if(size!=null) url+=("&size;="+size); if(clickId!=null) url+=("&clickId;="+clickId); if(destUrl!=null) url+=("&url;="+destUrl); _leoHighlightsDebugLog("leoHighlightsUpdateUrl() "+url); iFrame.src=url; } catch(e) { _leoHighlightsReportExeception("leoHighlightsUpdateUrl()",e); }
} /**
*
* This can be used to close an iframe
*
* @param id
* @return
*/
function leoHighlightsSetSize(size,clickId)
{ try { /* Get the element */ var iFrameTop=_leoHighlightsFindElementById(LEO_HIGHLIGHTS_IFRAME_TOP_ID); /* Figure out the correct sizes */ var iFrameTopSize=LEO_HIGHLIGHTS_IFRAME_TOP_SIZE; /* Refresh the iFrame's url, by removing the size arg and adding it again */ leoHighlightsUpdateUrl(iFrameTop,size,clickId); _leoHighlightsSetSize(iFrameTop,iFrameTopSize); _leoHighlightsSetBottomSize(size,clickId); /* Clear the hover flag, if the user shows this at full size */ if(size==1&&_leoHighlightsPrevElem) _leoHighlightsPrevElem.hover=false; } catch(e) { _leoHighlightsReportExeception("leoHighlightsSetSize()",e); }
} /** * Start the popup a little bit delayed. * Somehow IE needs some time to find the element by id. * * @param anchorId * @param size * * @return */
function leoHighlightsShowPopup(anchorId,size)
{ try { var elem=_leoHighlightsFindElementById(anchorId); if(_leoHighlightsPrevElem&&(_leoHighlightsPrevElem!=elem)) _leoHighlightsPrevElem.shown=false; elem.shown=true; _leoHighlightsPrevElem=elem; _leoHighlightsDebugLog("leoHighlightsShowPopup() "+_leoHighlightsPrevElem); /* FF needs to find the element first */ _leoHighlightsFindElementById(anchorId); setTimeout("_leoHighlightsShowPopup('"+anchorId+"','"+size+"');",10); } catch(e) { _leoHighlightsReportExeception("leoHighlightsShowPopup()",e); } } /**
*
* This can be used to close an iframe
*
* @param id
* @return
*/
function leoHighlightsHideElem(id)
{ try { /* Get the appropriate sizes */ var elem=_leoHighlightsFindElementById(id); if(elem) elem.style.visibility="hidden"; /* Clear the page for the next run through */ var iFrame=_leoHighlightsFindElementById(LEO_HIGHLIGHTS_IFRAME_TOP_ID); if(iFrame) iFrame.src="about:blank"; var iFrame=_leoHighlightsFindElementById(LEO_HIGHLIGHTS_IFRAME_BOTTOM_ID); if(iFrame) iFrame.src="about:blank"; if(_leoHighlightsPrevElem) { _leoHighlightsPrevElem.shown=false; _leoHighlightsPrevElem=null; } } catch(e) { _leoHighlightsReportExeception("leoHighlightsHideElem()",e); }
} /**
*
* This can be used to close an iframe.
* Since the iFrame is reused the frame only gets hidden
*
* @return
*/
function leoHighlightsIFrameClose()
{ try { _leoHighlightsSimpleGwCallBack("LeoHighlightsHideIFrame"); } catch(e) { _leoHighlightsReportExeception("leoHighlightsIFrameClose()",e); }
} /** * This should handle the click events * * @param anchorId * @return */
function leoHighlightsHandleClick(anchorId)
{ try { if(_leoHighlightsIsFrame()) return false; var anchor=_leoHighlightsFindElementById(anchorId); anchor.hover=false; if(anchor.startTimer) clearTimeout(anchor.startTimer); /* Report the click event */ leoHighlightsReportEvent("clicked", window.document.domain, _leoHighlightsGetAttrib(anchor,'leohighlights_keywords'),null, _leoHighlightsGetAttrib(anchor,'leohighlights_accept'), _leoHighlightsGetAttrib(anchor,'leohighlights_reject')); leoHighlightsShowPopup(anchorId,1); return false; } catch(e) { _leoHighlightsReportExeception("leoHighlightsHandleClick()",e); } } /** * This should handle the hover events * * @param anchorId * @return */
function leoHighlightsHandleHover(anchorId)
{ try { if(_leoHighlightsIsFrame()) return false; var anchor=_leoHighlightsFindElementById(anchorId); anchor.hover=true; /* Report the hover event */ leoHighlightsReportEvent("hovered", window.document.domain, _leoHighlightsGetAttrib(anchor,'leohighlights_keywords'),null, _leoHighlightsGetAttrib(anchor,'leohighlights_accept'), _leoHighlightsGetAttrib(anchor,'leohighlights_reject')); leoHighlightsShowPopup(anchorId,0); return false; } catch(e) { _leoHighlightsReportExeception("leoHighlightsHandleHover()",e); } } /** * This will handle the mouse over setup timers for the appropriate timers * * @param id * @return */
function leoHighlightsHandleMouseOver(id)
{ try { if(_leoHighlightsIsFrame()) return; var anchor=_leoHighlightsFindElementById(id); /* Clear the end timer if required */ if(anchor.endTimer) clearTimeout(anchor.endTimer); anchor.endTimer=null; anchor.style.background=LEO_HIGHLIGHTS_BACKGROUND_STYLE_HOVER; /* The element is already showing we are done */ if(anchor.shown) return; /* Setup the start timer if required */ anchor.startTimer=setTimeout(function(){ leoHighlightsHandleHover(anchor.id); anchor.hover=true; }, LEO_HIGHLIGHTS_SHOW_DELAY_MS); } catch(e) { _leoHighlightsReportExeception("leoHighlightsHandleMouseOver()",e); }
} /** * This will handle the mouse over setup timers for the appropriate timers * * @param id * @return */
function leoHighlightsHandleMouseOut(id)
{ try { var anchor=_leoHighlightsFindElementById(id); /* Clear the start timer if required */ if(anchor.startTimer) clearTimeout(anchor.startTimer); anchor.startTimer=null; anchor.style.background=LEO_HIGHLIGHTS_BACKGROUND_STYLE_DEFAULT; if(!anchor.shown||!anchor.hover) return; /* Setup the start timer if required */ anchor.endTimer=setTimeout(function(){ leoHighlightsHideElem(LEO_HIGHLIGHTS_IFRAME_DIV_ID); anchor.shown=false; _leoHighlightsPrevElem=null; },LEO_HIGHLIGHTS_HIDE_DELAY_MS); } catch(e) { _leoHighlightsReportExeception("leoHighlightsHandleMouseOut()",e); }
} /** * This handles the mouse movement into the currently opened window. * Just clear the close timer * * @return */
function leoHighlightsHandleIFrameMouseOver()
{ try { if(_leoHighlightsPrevElem&&_leoHighlightsPrevElem.endTimer) clearTimeout(_leoHighlightsPrevElem.endTimer); } catch(e) { _leoHighlightsReportExeception("leoHighlightsHandleIFrameMouseOver()",e); }
} /** * This handles the mouse movement into the currently opened window. * Just clear the close timer * * @param id * @return */
function leoHighlightsHandleIFrameMouseOut()
{ try { if(_leoHighlightsPrevElem) leoHighlightsHandleMouseOut(_leoHighlightsPrevElem.id); } catch(e) { _leoHighlightsReportExeception("leoHighlightsHandleIFrameMouseOut()",e); }
}
/** * This is a method is used to make the javascript within IE runnable */
var leoHighlightsRanUpdateDivs=false;
function leoHighlightsUpdateDivs()
{ try { /* Check if this is an IE browser and if divs have been updated already */ if(document.all&&!leoHighlightsRanUpdateDivs&&!_leoHighlightsIsFrame()) { leoHighlightsRanUpdateDivs=true; // Set early to prevent running twice for(var i=0;i0) url=url.substring(0,idx); /* Append the text to the end */ url+="#"+encodeURI(txt); /* Set the iframe with the new url that contains the hash tag */ topIFrame.src=url; } catch(e) { _leoHighlightsReportExeception("leoHighlightsSetExpandTxt()",e); }
} /*----------------------------------------------------------------------*/
/* Methods provided to the highlight providers... */
/*----------------------------------------------------------------------*/ /** * This will set the expand text for the Top window */
function leoHL_SetExpandTxt(txt)
{ try { _leoHighlightsDebugLog("leoHL_SetExpandTxt() "+txt); _leoHighlightsSimpleGwCallBack("LeoHighlightsSetExpandTxt","expandTxt",txt); } catch(e) { _leoHighlightsReportExeception("leoHL_SetExpandTxt()",e); }
} /** * This will redirect the top window to the passed in url * * @param url * @param parentId * @return */
function leoHL_RedirectTop(url,parentId)
{ try { try{ var domain=_leoHighlightsGetUrlArg(window.document.URL,"domain") var keywords=_leoHighlightsGetUrlArg(window.document.URL,"keywords") var vendorId=_leoHighlightsGetUrlArg(window.document.URL,"vendorId") leoHighlightsReportEvent("clickthrough", domain,keywords, vendorId); }catch(e){ _leoHighlightsReportExeception("leoHL_RedirectTop()",e); } _leoHighlightsRedirectTop(url); } catch(e) { _leoHighlightsReportExeception("leoHL_RedirectTop()",e); }
} /** * This will redirect the top window to the passed in url * * @param url * @param parentId * @return */
function LeoHL_RedirectTop(url,parentId)
{ leoHL_RedirectTop(url,parentId);
} /** * This will redirect the top window to the passed in url * * @param url * @param parentId * @return */
function leoHL_RedirectTopAd(url,parentId)
{ try { try{ var domain=_leoHighlightsGetUrlArg(window.document.URL,"domain") var keywords=_leoHighlightsGetUrlArg(window.document.URL,"keywords") var vendorId=_leoHighlightsGetUrlArg(window.document.URL,"vendorId") leoHighlightsReportEvent("advertisement.click", domain,keywords, vendorId); }catch(e){ _leoHighlightsReportExeception("leoHL_RedirectTopAd()",e); } _leoHighlightsRedirectTop(url); } catch(e) { _leoHighlightsReportExeception("leoHL_RedirectTopAd()",e); }
} /** * This will set the size of the iframe * * @param url * @param parentId * * @return */
function leoHl_setSize(size,url)
{ try { /* Get the clickId */ var clickId=_leoHighlightsGetUrlArg( url,"clickId") var gwObj = new Gateway(); gwObj.addParam("size",size); if(clickId) gwObj.addParam("clickId",clickId+"_blah"); gwObj.callName("LeoHighlightsSetSize"); } catch(e) { _leoHighlightsReportExeception("leoHl_setSize()",e); }
} /** * This will toggle the size of the window * * @return */
function leoHl_ToggleSize()
{ try { var gwObj = new Gateway(); gwObj.callName("LeoHighlightsToggleSize"); } catch(e) { _leoHighlightsReportExeception("leoHl_ToggleSize()",e); }
} ");
]]>[removed]

About the Author

Karen Grahams has keen interest in Internet Marketing, which began roughly four years ago. Writing has always been her passion. She is continually striving to enhance her interest by developing internet strategies.

python code help ? simple speed calculator?

I want to create a small program that works out speed -

i have this so far and the output is always 0

where am i going wrong?

print "Speed Calculator"
d = input ("Please enter distance in miles:")
t = input ("Please enter time in minutes:")
ans = ( t / 60 )
print "The answer is: ", ans, "mph"

python 2.x.x does integer division when dealing with integers and float division when dealing with floats
python 3.x.x does all float division
personally i like how py2 separates this, however, in this case, it is a nuissance
so all you have to do is type cast your inputs:

d = float( input ("Please enter distance in miles:") )
t = float( input ("Please enter time in minutes:") )

You can also do this at the top:
from __future__ import division

this basically imports python3 division into python2

Monroe Printing Calculator - Introduction to the Monroe Classic

Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

Trackbacks are disabled.