Skip to main content
Commercial Photography

Secret HTML TIPS & Tricks

Secret-HTML-TIPS-&-Tricks


All these tips are implemented by placing the code in an HTML object in your Lectora title.

  • How to Close a Popup Window Automatically

As soon as the user clicks on any window other than the popup, the popup closes.
  1. Create an HTML object from the Insert toolbar.
  2. Then select: Object Type: Other
<body onBlur=top.cSlose()>

Limitations: You cannot have any clickable item on the popup page. If you do, the popup closes
as soon as the user clicks on the item – button, hyperlink, Table of Contents, Menu.
 
  • How to Disable Right Mouse Click, Double Clicking, and Dragging
  1. Create an HTML object from the Insert toolbar.
  2. Then select: Object Type: Other
  3. Insert:

<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">

in the Custom HTML field.
  • How to Keep the Background Image from Repeating
It appears that the easiest way to keep it from repeating is to make it the same size as the page specified in the title. If it is different, frequently it will repeat. If you want to stop that, create an HTML object at the title level so it will be on all pages. You can shrink it down so it does not get in the way of your design. It is only a place holder.

In the Custom HTML box enter this:

<style text="text/css">
  body { background-repeat:no-repeat; }
</style>

  • How to Suppress IE Mouse-over Image Toolbar
IE 6 sometimes displays an annoying image bar when the mouse is rolling over an image.

This can be removed by placing an External HTML Object at the title level and choose "Other" as its type. Place the following line in the custom html field:

<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
  • How to Right Justify an Entry Field
To make the entry field right adjusted as you would for entering numbers in a Form Entry field or
a Fill in the Blank question, create an HTML object containing:

<style> input { text-align: right;} </style>

  • How to Suppress Entry Field Borders
To suppress the borders on an either a Form Entry field or a Fill in the Blank question, create an HTML object containing:

<style>input {border: none;}</style>
This works only when published to HTML.

This will apply to all input boxes on the page. If you want it to apply to just one, then add the HTML name after the input like this:

<style> input.entry368{border: none;} </style>

  • How to Control the Color of Hyperlinks
The styles Lectora uses by default do prevent the link visited colors from changing. It can be overwritten using a style sheet. If you want to change the link colors try adding a CSS similar to this. Create an HTML object with the default Properties. Insert this:

<style>
a span, a:visited span {color: red }
a span, a:hover span {color: purple }
or
A:link {text-decoration: none; color:#c29b80;}
A:visited {text-decoration: none; color:#c29b80;}
A:active {text-decoration: none; color:#c29b80;}
A:hover {text-decoration: underline; color: rgb(255,0,0);}
</style>
  • How to Use the F1 Key w/o Browser Help Popping Up
If you want to code an On Key action that uses F1, normally the browser’s help function appears. To get around this, code the following in an HTML object with the Object type set to Header Scripting.

document.onhelp = new Function("return false;");
window.onhelp = new Function("return false;");

  • How to Change the Web 2.0 Display Font
Web 2.0 displays currently use Times Roman font. This code, while not JavaScript, allows you to change it to whatever you like.

<style>
.DLG_content{
     overflow:none;
     position:relative;
     border:none;
     font-family: verdana;
}
</style>

  • How to Disable the Horizontal Scroll Bar for Fly Left
<style type="text/css">
<!--
.html, body {
overflow-x:hidden;
}
-->
</style>

Comments

Popular posts from this blog

Train To Busan: Film Review

Train To Busan: Film Review Cast: Yoo Gong, Dong-seok Ma, Woo-sik Choi, Soo-an Kim Director: Sang-ho Yeon Despite starting off dangerously close to camp territory thanks to a resurrected road-kill, Train To Busan shakes off any silliness to provide one of the year's freshest and engaging takes on the zombie genre. In South Korea, there's a crisis - amid concerns of foot and mouth inside a quarantine zone, trouble's brewing. Thanks to a "tiny leak at a biotech district", chaos soon reigns and the region is over-run by a zombie virus, turning the masses into rabid feral biters, determined to take down anyone and anything in their way. Unaware of what's happening, Sok-Woo (Yoo Gong) is trying to get out of spending time with his estranged young daughter Soo-an (Soo-an Kim) because of work pressures. Separated from his wife in another district, Soo-an simply wants to board the train to Busan to go back to her mother, after her father failed to attend her recital....

The Magnificent Seven: Film Review

The Magnificent Seven: Film Review Cast: Denzel Washington, Chris Pratt, Ethan Hawke, Vincent D'Onofrio, Manuel Garcia-Rulfo, Martin Sensmeier, Byung-hun Lee, Peter Sarsgaard Director: Antoine Fuqua Rote and without a hint of much of his own style, The Magnificent Seven somehow manages to feel like a weaker carbon copy than a redo of the 1960s classic. This time around, Denzel Washington leads the pack as Sam Chisholm, a newly sworn warrant officer. Riding into town with nary a comment but with every head turning as a black man heads down their street, Chisholm is asked by widowed Emma Cullen (a largely underused but pleasingly effective Haley Bennett) to avenge her husband's death and free their mining town from the tyrannical grip of Bartholomew Bogue (Sarsgaard). Gathering up a motley crew of multi-racial misfits (one of the more revisionist edges that Fuqua gifts the reboot), Chisholm and his man saddle up for a fight. The Magnificent Seven is nothing in comparison to the...

Alexis Responsive Blogger Template (EP Free Templates)

Alexis is a free blogger template adapted from WordPress with 2 columns, responsive design, right sidebar, minimalist, posts thumbnails, related posts support, well designed threaded comments, girly looking, simple look and vintage style. Responsive & Fast template for blogs about any general topic, to write a diary or fashion. Download Alexis for free from EP: DEMO & Download