3 replies [Last post]
el_espasmo
Offline
newbie
Mexico City
Last seen: 15 years 32 weeks ago
Mexico City
Timezone: GMT-6
Joined: 2006-04-26
Posts: 4
Points: 0

Yes... I know the question might be stupid but... I still want to try because I haven't been able to solve this.

I have been trying to change some stuff in MySpace, NOT in my profile, but in my pictures section.

I found that, if in the CAPTION section of the photos you introduce some CSS code, it actually applies to the page.

The problem is... you only have 70 characters to type at any caption box. So, any CSS code must be really short.

I discovered that if want to change anything about the background of that photogallery, i can use two or more caption boxes.

for example, writing:

<style type="text/css"> body { background: 000000} </style>

in one caption box, turns the background of the page into black

then, at any other caption box i write:

<style type="text/css">table, tr, td{ background: 000000} </style>

and... voilá the whole thing goes black. (the main page background and the actual table background, where the pictures are placed)

Now, my challenge is using an image as background.

The problem is: i have tried as many addresses (URL's) as possible and no one is short enough to fit in the caption box along with the rest of the CSS code!! (another restriction is: you have ALWAYS to open and close the <style type="text/css"></style> tags in THE SAME caption box... if you fail to do this, you just cannot display the SUBMIT button when you get to see the preview)

I have gone through several image hosting services and no one seems to work (of course, all of them have been free servers, i cannot afford to pay for any paid service now).

So, the real question is: is there any way to "define" an URL or URI as a variable or identifier within the body of the page, so I can call it later at any other caption box?

for an example:

bg="http://whatever.com/myimage.gif"

and then go for the:

<style type="text/css">table, tr, td{ background: url("bg")} </style>

thing?

I hope I explained myself ok, and that I will get some help from anyone. Smile

Thanks a lot in advance!

..

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 6 years 47 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

[SOLVED] CHANGING LAYOUT IN MYSPACE PHOTOS

Shock not sure really ; this is a rather odd question , problems are we are not really going to be familiar with myspace and it's coding methods , and this does not seem to have a foundation in standards based valid coding around which this forum is based .

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

el_espasmo
Offline
newbie
Mexico City
Last seen: 15 years 32 weeks ago
Mexico City
Timezone: GMT-6
Joined: 2006-04-26
Posts: 4
Points: 0

[SOLVED] CHANGING LAYOUT IN MYSPACE PHOTOS

well... I finally came to a way to do it!!

using just this line:

<style>body{background:url('http://tinypic.com/wh0gw1.gif')}</style>

the thing was solved. And replacing the word "body" with "table, tr, td" (done in another caption box, of course) finishes the job.

Thanks a lot for taking the time to read this stupid thread. I hope it helps someone else, if that is the case.

..

el_espasmo
Offline
newbie
Mexico City
Last seen: 15 years 32 weeks ago
Mexico City
Timezone: GMT-6
Joined: 2006-04-26
Posts: 4
Points: 0

[SOLVED] CHANGING LAYOUT IN MYSPACE PHOTOS

And, of course, the use of tinypic.com helped a lot too! Cool

..