Skip to main content

Posts

Showing posts with the label Javascript
Commercial Photography

Increase your blog pageviews by using smart links

How to Easily Put SEO Smart Links On Postings Blog- mas Dion Blog Hello friends, this time I want gives a tutorial how to plug SEO smart link in the post / article of your blog. Well usefulness of SEO Smart link mounting technique is intended to provide a signal to Google that more crawl links in our blog article and to advance SEO techniques to increase Page Views Blog itself. How it works from the SEO Smart Links is very easy that is by displaying one or more characters that leads to a specific link where the link is a link you another article that you think is related to an article on your blog. If you are curious to know how the installation of SEO Smart Links in Blog you please see the discussion below. For how very easy installation, consider the following tutorial: The first step please go first to the Edit HTML template >> Then how the code </ body> Then place the following code before the code </ body> <script type='text/javascript'> function sm...

Secrets & Special Javascript Tricks

Refresh the Page Create an action like this: On: Mouse Click Action: Modify Variable Target: temp (Dummy Variable) Value: Javascript: window.location.reload() Close Button In some cases a button with the Exit course / close window action does not work. If that happens to you, try this: Add another action to the Exit button with: On: Mouse Click Action: Go To Target: Web Address Value: Javascript: top.window.close() A recent tip from the Lectora forum by Tecocat was to "make sure that in your Publish options, you check the option that says ‘Published Content will be Presented in a Separate window than the LMS.’ This will enable you to use the Exit Title action in Lectora when publishing to SCORM." Get Current URL for Bookmarking On: Show Action: Modify Variable Target: _bookmark (a retained variable) Value: Javascript: location.href Then, on returning to the course, the first page checks the variable _bookmark for not equal to zero and runs a Go To Web Address action using V...

Logical & Conditional Operators Javascript

Javascript supports equality checking (==) and identity checking (===). Equality checks for equality regardless of type. Therefore 25 and '25' will evaluate as true. Identity checking checks not only for equality but type equality as well so 25 and '25' will evaluate as false because, while both are 25, one is a string and the other a number. Note that a single equal sign is an assignment statement! x=5 will assign 5 to x, while x==5 will see if x is equal to 5, and x===5 will check to see if x is identical to 5.  In addition to == and === , you can check for not equal ( != ) and not identical ( !== ). Operators Description = Assignment x=5; // assigns 5 to x == Equality, is x==5? === Identity, is x 5 and a number as well? != Not equal, is x unequal to 5? !== Not identical, is x unequal to the Number 5? ! Not, if not(false) is true. || OR, is (x==5) OR (y==5) && And, is (x==5) AND (y==5) < Less than. is x less than 5? <= Less than or equal. is x less than...

Commets, Varialbles & Special Keywords

Comments Javascript supports two types of comments. Double-slashes (//) tell javascript to ignore everything to the end of the line. You will see them used most often to describe what is happening on a particular line. var x=5; // Everything from the // to end of line is ignored(*) var thingamajig=123.45; // 2 times the price of a whatsit. "Blockquotes" begin a comment block with a slash-asterisk (/*) and Javascript will ignore everything from the start of the comment block until it encounters an asterisk-slash (*/). Blockquotes are useful for temporally disabling large areas of code, or describing the purpose of a function, or detailing the purpose and providing credits for the script itself.  function whirlymajig(jabberwocky) {    /* Here we take the jabberwocky and insert it in the gire-gimble, taking great care to observe the ipsum lorum!   For bor-rath-outgrabe! We really should patent this! */    return (jabberwocky*2); } You should note that...