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

  • Implementing Application Initialization on IIS 7.5Implementing Application Initialization on IIS 7.5
  • Auto-Format VS2010 Source CodeAuto-Format VS2010 Source Code
  • Automating Website Creation with PowerShell v3Automating Website Creation with PowerShell v3
  • Installing and configuring Bonobo GIT Server for Windows (IIS7) for remote IIS push capability (Guest Post)Installing and configuring Bonobo GIT Server for Windows (IIS7) for remote IIS push capability (Guest Post)
  • ASP.NET MVC: Send Array by parameter in AJAX POSTASP.NET MVC: Send Array by parameter in AJAX POST
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

ASP.NET Automation centos CMS css cytanium Development/Coding Email gmail Hosting htaccess http https IIS javascript Learning Linux logparser MySQL nginx openssl OrcsWeb performance PowerShell redirect RHEL security server SherWeb smtp SQL/Databases ssl System Administration telnet terminal tip Troubleshooting Ubuntu virtualization Visual Studio web farm web hosting Windows windows server Wordpress

Categories

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