Pages: 1

  2006-10-07 18:21:36

XxXAnthonyXxX
» n00b
FTalk Level: zero
2
0
1969-12-31

[i]Post edited by eehjhay[/i] [b][color=blue][u]Auto Update Photo[/u][/color][/b] [i][url=http://www.markyctrigger.com/forum/viewtopic.php?t=202]log[/url][/i] Insert this code anywhere in the body se

[i]Post edited by eehjhay[/i] [b][color=blue][u]Auto Update Photo[/u][/color][/b] [i][url=http://www.markyctrigger.com/forum/viewtopic.php?t=202]log[/url][/i] Insert this code anywhere in the body section of your HTML you want to show that image: [quote]<script language="javascript"> automainphoto="yes" </script> <div id="automainphotoid"></div>[/quote] Edit the [color=blue]values[/color] for your desired style: [quote]<style> .imgblock200 { width: [color=blue]200[/color]px; background: #[color=blue]FFFFFF[/color]; border: [color=blue]1[/color]px [color=blue]solid[/color] #[color=blue]76B5C6[/color]; text-align: [color=blue]center[/color]; margin-bottom: [color=blue]5[/color]px; } .imgblock200 img { margin: [color=blue]0 auto[/color]; } </style>[/quote] And then insert it inside the head tags: <head></head> ================================= ================================= [b][u][color=green]Auto Picture Comment[/color][/u][/b] [i][url=]log[/url][/i] paste this script anywhere between the <body> </body> tag [quote]<script language="javascript"> var numberOfMsgs=[color=red]5[/color]; photoID = [color=red]183600318[/color]; rID = [color=red]11913[/color]; apc="yes"; function random_comment() { var ranNum= Math.floor(Math.random()*numberOfMsgs); return ranNum;} var theComment=random_comment(); var comment=new Array(numberOfMsgs) comment[0]="[color=red]is it the weather or you are just really HOT?[/color]"; comment[1]="[color=red]can i get your number please?[/color]"; comment[2]="[color=red]you make me uhhhh[/color]"; comment[3]="[color=red]aww i love this photo! ^_^[/color]"; comment[4]="[color=red]you look really hot in this picture[/color]"; </script> <div id="commentid" style="display:none;"></div>[/quote] Note: values to be changed are the ones in [color=red]RED[/color] - the number of comments you want to have [quote]var numberOfMsgs=[color=red]5[/color];[/quote] - the ID of the picture that will get the comments [quote]photoID = [color=red]183600318[/color];[/quote] - the unique security ID of your picture [quote]rID = [color=red]11913[/color];[/quote] - the comments that will be posted randomly [quote]comment[0]="[color=red]is it the weather or you are just really HOT?[/color]"; comment[1]="[color=red]can i get your number please?[/color]"; comment[2]="[color=red]you make me uhhhh[/color]"; comment[3]="[color=red]aww i love this photo! ^_^[/color]"; comment[4]="[color=red]you look really hot in this picture[/color]";[/quote] [color=green]Note:[/color] The numberOfMsgs corresponds to the number of the comment arrays you will post. And [b]always remember[/b] that the counting begins at [color=red]0[/color] ... so if i want 3, then the count will be 0, 1, 2 comprende? [color=green]How to get the Photo ID of your pictures[/color] [quote]At the main index of your friendster, click "My Photos" then click your first picture, then paste this on the Address bar [color=red]javascript:alert(thumbs.photo[0].pid)[/color] .. you will now see the ID of your first picture .. if u want to view the ID of your second picture, simply replace the 0 by 1 and so on .. Another way is to repeat the last 2 steps that we have done and on the Address bar you will have a link like this http://www.friendster.com/viewphotos.php?p=e&pid=[color=red]183600318[/color]&uid=22744582 and the red color is your picture ID.[/quote] [color=green]How to get the rID of your pictures[/color] [quote]At the main index of your friendster, click "My Photos" then click your first picture, then paste this on the Address bar [color=red]javascript:alert(thumbs.photo[0].rid)[/color] .. you will now see the rID of your first picture .. if u want to view the rID of your second picture, simply replace the 0 by 1 and so on .. Another way is to repeat the last 2 steps that we have done and on the Address bar you will have a link like this http://www.friendster.com/viewphotos.php?p=e&pid=[color=red]365178278[/color]&rid=11913&uid=22744582 and the red color is your picture rID.[/quote] ok, so to avoid further confusions i will have an example where i want to have 7 messages... my html will then look like this [quote]<html> <head> </head> <body> <script language="javascript"> var numberOfMsgs=[color=red]7[/color]; photoID = [color=red]183600318[/color]; rID = [color=red]11913[/color]; apc="yes"; function random_comment() { var ranNum= Math.floor(Math.random()*numberOfMsgs); return ranNum;} var theComment=random_comment(); var comment=new Array(numberOfMsgs) comment[0]="is it the weather or you are just really HOT?"; comment[1]="can i get your number please?"; comment[2]="you make me uhhhh"; comment[3]="aww i love this photo! ^_^"; comment[4]="you look really hot in this picture"; comment[5]="[color=red]this is the 6th message[/color]"; comment[6]="[color=red]this is the 7th message[/color]"; </script> <div id="commentid" style="display:none;"></div> </body> </html>[/quote]

Last edited by eehjhay (2007-06-21 09:18:52)

Pages: 1

Board footer

© 2024 F Talk

Current time is 21:41

[ 12 queries - 0.070 second ]
Privacy Policy