/    Sign up×
Community /Pin to ProfileBookmark

image click link

Is there a way to set the background color of the new page that opens, when you have the link referenced to the original image? I know i could create a new page but i dont want to create a new page beacause it would end up resulting in like a few hundred more pages. I just want to click a thumbnail that references the original file. thanks

to post a comment
Full-stack Developer

1 Comments(s)

Copy linkTweet thisAlerts:
@saeAug 25.2006 — Perhaps with php and geturl

Your link would be
<i>
</i>&lt;a href="thispage.php?bg=red.gif"&gt;


Then in the body tag of your page you would have something like this
<i>
</i>&lt;body background ="
&lt;?php
Geturl bg;
echo bg;
?&gt;
"&gt;


****This code will not work but it should give you an idea of how to do it****
×

Success!

Help @pieto20 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 6.18,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...