Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Graphics Forum


You are currently viewing our Graphics Forum as a guest. Please register to participate.
Login



Reply
Old 07-07-2006, 02:19 AM Alias images
shane.carr's Avatar
Experienced Talker

Posts: 30
Trades: 0
Okay, this is kind-of hard to explain...


Say there is a foo.gif. Then there was a bar.gif. I want foo.gif to look like bar.gif. For example:

foo.gif contains this picture:

bar.gif contains this picture:

I want foo.gif (NO NAME CHANGES) to load bar.gif, so then foo.gif will look like . I do not want to duplicate bar.gif and rename it. The file should be able to be <img src="foo.gif" />'d into any html file. I will accept it if you tell me to make it into a code file with the same name or something (i.e. make an html file named foo.gif and put the code <img src="bar.gif" /> [which doesn't work, it just shows up as a square with a ? in it])


How do I do it?
shane.carr is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-07-2006, 02:54 AM Re: Alias images
blue-dreamer's Avatar
King Spam Talker

Posts: 1,222
Location: Middle England
Trades: 0
I'm confused, have you got an example of what you are trying to achieve?
blue-dreamer is offline
Reply With Quote
View Public Profile
 
Old 07-07-2006, 03:30 AM Re: Alias images
shane.carr's Avatar
Experienced Talker

Posts: 30
Trades: 0

foo.gif can contain anything.
bar.gif contains



HTML Code:
<img src="foo.gif" />
will show the image contained inside foo.gif. WITHOUT CHANGING ANY HTML CODE AND WITHOUT DUPLICATING BAR.GIF, I want to img in bar.gif. Could an alias do this? Could I replace foo.gif with a text file with some code?



¿¿¿¿¿How do I do it?????


shane.carr is offline
Reply With Quote
View Public Profile
 
Old 07-07-2006, 06:01 AM Re: Alias images
moondog's Avatar
Ultra Talker

Posts: 256
Location: Croatia
Trades: 0
I'm confused...

Try to explain it better....
moondog is offline
Reply With Quote
View Public Profile
 
Old 07-07-2006, 06:26 AM Re: Alias images
shane.carr's Avatar
Experienced Talker

Posts: 30
Trades: 0
There is a file. It is named "foo.gif". There is another file. It is named "bar.gif". Bar.gif contains a picture. I want foo.gif to load bar.gif into itself, so if one would load foo.gif into <img src>, they would see bar.gif.

Example:

bar.gif.....foo.gif
|-----------------|
+---------------->+
------------------|
------------------will display bar.gif in foo.gif



Plese tell me any ways that I can better describe my problem.

Last edited by shane.carr; 07-07-2006 at 06:28 AM..
shane.carr is offline
Reply With Quote
View Public Profile
 
Old 07-07-2006, 08:25 AM Re: Alias images
Ultra Talker

Posts: 251
Location: Belgium, Antwerp, Zoersel
Trades: 0
It's very simple, he want's to rewrite his URL to bar.gif when foo.gif is requested.

Ok, here's how to do it from foo.gif to bar.gif:

in .htaccess:
Code:
RewriteEngine On

RewriteRule $(.*)foo.gif$ $1bar.gif;
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Orodreth is offline
Reply With Quote
View Public Profile Visit Orodreth's homepage!
 
Old 07-07-2006, 07:51 PM Re: Alias images
shane.carr's Avatar
Experienced Talker

Posts: 30
Trades: 0
Cool! It works! Thanks!
shane.carr is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Alias images
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.55446 seconds with 12 queries