Nova Scotia Flag

SCOTIA SYSTEMS BLOG




Unable to Print From Adobe Acrobat?

September 27th, 2010 admin

If you have a printer installed, and yet Adobe Acrobat refuses to print :

image

Error : “Before you can perform print-related tasks such as page setup or printing a document, you need to install a printer”

It could be because you don’t have a “default” printer selected.   Simply right click on one of your printers and select it as the Default Printer.





How To Hide A Div Element On A Click

September 25th, 2010 admin
 
Here’s a quick web design tip – how to hide and reveal a div element on a click.
 
To do this we use getElementById to find the required div and set the visibility to either inline or none.
 
We do this in a function we’re creating called showdiv – which itself is triggered by a button click.
 
Here’s the code:
 
   1:  <html>
   2:  <head>
   3:  <title>How To Hide A div element</title>
   4:  <style type="text/css">
   5:  div {
   6:  position: absolute;
   7:  top: 80px;
   8:  left: 15px;
   9:  width: 130px;
  10:  padding: 10px;
  11:  color: white;
  12:  border: #000000 2px;
  13:  background-color: #FF0000;
  14:  display: none;
  15:  }
  16:  </style>
  17:   
  18:  <script language="JavaScript">
  19:  function showdiv(id, visibility) {
  20:  document.getElementById(id).style.display = visibility;
  21:  }
  22:  </script>
  23:   
  24:  </head>
  25:  <body >
  26:   
  27:  <input type=button name=type value='Show Div' 
  28:              onclick="showdiv('hidden-div', 'inline');";>
  29:   
  30:  <input type=button name=type value='Hide Div' 
  31:              onclick="showdiv('hidden-div', 'none');";> 
  32:   
  33:  <div id="hidden-div">Hidden Div Element</div>
  34:   
  35:  </body>
  36:  </html>
 
 
And here’s a link to a demo page




Is This The Source Of The Latest Twitter Virus Outbreak?

September 21st, 2010 admin

Twitter has once again fallen foul of a viral automatic tweet.   Although the last outbreak of twifficiency did warn that it would tweet on your behalf (admittedly in small writing initially), this new outbreak relies on jquery to manipulate the Twitter site to tweet on your behalf simply by hovering over an image (cunning!).

This got me wondering – is it possible to track the source of the outbreak as there must be a “First Tweet” to start the ball rolling?

This is where Google search comes in handy.    The piece of code which everyone has appeared in all of the viral tweets is quite unique – so I tried searching Google and selecting Updates for the latest tweets.   You can then move the timeline back to the first mention, and hey presto:

 

image