/    Sign up×
Community /Pin to ProfileBookmark

how do I add captions to the large image here?

Hi,

I’d simply like to add a caption to go under the large image.

Here’s the page:

[url]http://www.johnhintlian.com/portfolio.htm[/url]

Here’s the code:

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

and here’s the thumbnail/large image code:

<a href=”#” onClick=”MM_swapImage(‘largeimg’,”,’images/portfolioImages/tyler.jpg’,1)”><img src=”images/portfolioImages/tylerTN.jpg” name=”th_36″ width=”40″ height=”40″ border=”1″ id=”th_36″></a>

I think it’s just a case of inserting some code, I’m looking for a quickie solution.

Please help! Thanks

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @jmaxh spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...