When all else fails, and many other times as well... Script Injector
Search
× Search
Thursday, July 24, 2025

Sprocket Websites - Blog / News / Updates

The latest news and muse from Sprocket Websites

When all else fails, and many other times as well... Script Injector
Don Gingold
/ Categories: DotNetNuke

When all else fails, and many other times as well... Script Injector

Script Injector is a neat module, at least for somebody who knows how to program in javascript and html but not in .Net and C# or VB or know how to make custom modules. That would be me. I love DotNetNuke as a Content Management System and a Development Framework, since it has a large Community of developers who've made some great modules, but sometimes I want a web page to act a certain way and can't find a module that I can just configure.

Friend of Sprocket Rick Lochner of RPC Leadership Associates has a DNN website that we built for him. He is a Leadership Trainer and likes interactive graphics. We made him a new diagram recently that looks like this, and on the live site if you hover over the blocks in the diagram you get a pop-up explaining the block. Try it

Here's how I made it. I drew it in Photoshop, including the area for the description paragraph, then sliced it up so that the interactive areas were their own individual image files. Then I did a little programming using basic HTML, some DIVs and a little CSS. So onMouseOver, the associated DIV's style changed to visible, and onMouseOut, it changed to hidden. (In a nutshell, of course.) 

This is where Script Injector comes in. If you write some custom Javascript in an HTML module (the most commonly used module), the module actually deletes it now! To get around this, I used Script Injector. I loaded it in the area where I wanted the paragraph and diagram, then "injected" the "script" (HTML, javascript and all) into the Script Injector's Settings page.

I'm not saying this is the most elegant way to do such things, and if a DNN guru is reading this and snickering, please comment on how you'd do it differently, but it worked for me and the client.

Previous Article Learn the Lingo
Next Article Tech Tools Build Government Participation
Print
4544 Rate this article:
No rating
 
Don Gingold

Don GingoldDon Gingold

Co-Founder and Managing Director of Sprocket Websites, Inc.; Co-Founder Chicago Area DotNetNuke User Group

Other posts by Don Gingold

Leave a comment

This form collects your name, email, IP address and content so that we can keep track of the comments placed on the website. For more info check our Privacy Policy and Terms Of Use where you will get more info on where, how and why we store your data.
Add comment

Contact author

x

Subscribe to our Newsletter...

... And Get All This!

Inbox:
Sprocket Report

Every other Tuesday, Sprocket sends out the Sprocket Report, our latest business tip or our reaction to what's currently happening in Internet Marketing.

You'll read a web marketing tip from Kate, another one from Breanne, and - bonus! - we always have a guest post as well. 

That's three valuable posts that you can read, plus a quick look at upcoming events and what's being said on Twitter. A great synopsis!

You'll want to get this newsletter for yourself, in your own inbox, so here's how. It's easy! 

Scroll back up and put your email in the box. OR scroll to the bottom of each page. We have our newsletter subscription box there, too!

We NEVER give out your email address to anybody else, and we don't flood you with ads. It's just good, free information. 


Archive

Search

GET SOCIAL

LEARN MORE

Get The Sprocket Report

 

Terms Of UsePrivacy StatementCopyright © 2025 by Sprocket Websites, Inc.
Back To Top