I am trying to manipulate a an image gallery that functions well. Now, I have the ability to pull information from a user’s preference pannel and need to place it in the an href=”” // And other information in each of the “src” | “url” | “alt”.
Any ideas would be truly helpful. This is what I am working with at the moment and it doesn’t work (obviously because it is adding code inside a span). Here is what I am starting from:
[CODE]
var title01Span = document.getElementById(‘title01Span’), //Finds the id that I want
prefs = new gadgets.Prefs(), // Pulls from the user’s preferences
yourtitle01 = prefs.getString(“title01”); // Pulls the correct string from those preferences
title01Span.innerHTML = yourtitle01; // replaces the span.id with that text but I need to be able to do this in the src / href / url / etc.
Thank you so much! I seriously could use as much help as possible!