April 18, 2024, 08:15:45 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
 
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  

Certain Image on a Certain Page

Pages: [1]   Go Down
  Print  
Author Topic: Certain Image on a Certain Page  (Read 359 times)
0 Members and 2 Guests are viewing this topic.
Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
Badges: (View All)
Tenth year Anniversary Nineth year Anniversary Search
« on: May 30, 2009, 08:58:06 pm »

Headers:
Code:
<script type="text/javascript">
function CertainBanner(tab,img){ if(location.href.match("action=" + tab)) document.write("<center><img src='" + img + "' /></center>"); };
CertainBanner("SECTION","URL");
</script>
Original Request: http://www.smfsupport.com/support/code_requests/request_certain_banners_for_certain_pages-t27113.0.html

SECTION = The page you want the image to show
To get the SECTION part, click on one of the tabs and look in the URL for the red part:
Quote
?action=forum

That would be the part you need to put in the SECTION part of the code.

URL = The URL of the image.

Here is an example of how to edit the code:
Code:
CertainBanner("admin","http://i56.photobucket.com/albums/g188/yort124/lick.gif");
The SECTION part is "admin", which I got from "?action=admin", meaning that the image specified would only appear on the admin section of the forum.

Enjoy Smiley
« Last Edit: June 12, 2009, 07:29:18 am by Agent Moose » Report Spam   Logged


Share on Facebook Share on Twitter

Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
Badges: (View All)
« Reply #1 on: June 17, 2009, 05:39:59 am »

Cool! I use it on my Forum  Wink
Report Spam   Logged






Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy