ASPNetFAQ.com: What is ASP.NET?

Technology posts on ASP.NET, IIS, Windows (+ a little Linux), Cloud Servers, Hosting, and more!
  • Blog Home
Search the site...

Code to A/B Test CTAs (Images + Links)

Tweet
Share
0 Shares

I’m looking for some copy/paste code that I can use to do some A/B testing on different calls-to-action – images and associated alt tags and links.

What I envision would have some javascript building an array with all the needed details, then randomizing a number to select which item to display <-this part is easy to find all over the web. But what I’d also like is a short and clean way to insert the image into my HTML page. Inserting actual inline JS sometimes throws off page formatting, which I of course want to avoid. Something that can be pasted into any spot of the page, perhaps like <%ShowCTA1()%> (or whatever the proper lingo is) would be awesome.

Anyone have a sample I can take and modify?

Thanks in advance!

More from my site

  • IIS7 Application Pool Idle Time-out SettingsIIS7 Application Pool Idle Time-out Settings
  • jQuery Mobile C# ASP.NET and N5 Networks Software RepositoryjQuery Mobile C# ASP.NET and N5 Networks Software Repository
  • Orchard: Custom Content in Sub-FoldersOrchard: Custom Content in Sub-Folders
  • SQL Server restore failure and resolutionSQL Server restore failure and resolution
  • ASP NET MVC5 with AngularJS DevelopmentASP NET MVC5 with AngularJS Development
Tweet
Share
0 Shares
javascript

Comments are closed.

Proverbs 19:20

"Get all the advice and instruction you can, so you will be wise the rest of your life."

A Note On WordPress Hosting

Our main focus is of course .NET, but with a mix of Linux, virtualization, and other technologies. But if you're really looking for the best WordPress hosting specifically, read my WordPress host review to save yourself hassle AND money!




Recent Posts

  • What makes good web hosting?
  • jQuery Mobile C# ASP.NET and N5 Networks Software Repository
  • Open Source Bug Tracking Software and the Orchard Project
  • ASP.NET Development with Dreamweaver MX: Visual QuickPro Guide
  • Kendo UI Sample, ASP.NET Ajax Tutorial & More

Tags

.NET ASP.NET Automation blog centos cloud CMS css cytanium Development/Coding Email gmail Hosting htaccess IIS javascript Learning Linux logparser MVC MySQL Orchard OrcsWeb performance PHP PowerShell redirect RHEL security server SherWeb smtp SQL/Databases System Administration tip Troubleshooting Ubuntu virtualization Visual Studio web farm web hosting WebMatrix Windows windows server Wordpress

Categories

  • ASP.net development
  • Development/Coding
  • Hosting
  • IIS (Internet Information Services)
  • SQL/Databases
  • System Administration
  • Virtualization
(c) ASPNETFAQ.com