The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > Design and Media For the iPhone / iPod Touch > Skinning / Themes Discussion
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 01-26-2009, 11:56 AM
Green Apple
 
Join Date: Oct 2008
Device + Firmware: iphone 3.0
Operating System: windows xp
Location: The "Rock"land Cty NY
Posts: 73
Thanks: 10
Thanked 7 Times in 6 Posts
Can someone help me

what do i need to add to this widget so i can change the location of its place..currently you cant move it...

<html>

<head>
<script type="text/javascript">
<!--
var image1=new Image()
image1.src="firstimage.jpg"
var image2=new Image()
image2.src="picture2.jpg"
var image3=new Image()
image3.src="picture3.jpg"
var image4=new Image()
image4.src="picture4.jpg"
var image5=new Image()
image5.src="picture5.jpg"
var image6=new Image()
image6.src="picture6.jpg"
var image7=new Image()
image7.src="picture7.jpg"
var image8=new Image()
image8.src="picture8.jpg"
var image9=new Image()
image9.src="picture9.jpg"

//-->
</script>
</head>

<body background="image.png">
<table style="position: absolute; top: -167px; left: 72px; width: 320px; height: 461px;" cellspacing="" cellpadding="" align="center">
<td height="40" border="0">

</td></table>




<br><br>&nbsp;&nbsp;&nbsp;&nbsp;<img src="firstimage.jpg" name="slide" width="102" height="153" />
<script>
<!--
//variable that will increment through the images
var step=1
function slideit(){
//if browser does not support the image object, exit.
if (!document.images)
return
document.images.slide.src=eval("image"+step+".src" )
if (step<9)
step++
else
step=1
//call function "slideit()" every 2.5 seconds
setTimeout("slideit()",2500)
}
slideit()
//-->
</script>
</body>
</html>
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 01-26-2009, 01:39 PM
iPhone? More like MyPhone
 
Join Date: Aug 2008
Posts: 130
Thanks: 20
Thanked 22 Times in 17 Posts

You need to modify the css code to the desired coordinates on the springboard. Here's the section that needs to be changed:

HTML Code:
<table style="position: absolute; top: -167px; left: 72px; width: 320px; height: 461px;" cellspacing="" cellpadding="" align="center">
 <td height="40" border="0">
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 01-26-2009, 02:20 PM
Green Apple
 
Join Date: Oct 2008
Device + Firmware: iphone 3.0
Operating System: windows xp
Location: The "Rock"land Cty NY
Posts: 73
Thanks: 10
Thanked 7 Times in 6 Posts

i tried that and it doesnt work..anything else maybe a new code?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4  
Old 01-26-2009, 08:19 PM
iPhone? More like MyPhone
 
Join Date: Aug 2008
Posts: 130
Thanks: 20
Thanked 22 Times in 17 Posts

Don't need a new code. That snippet contains the coordinates - that are absolute values for placement. You need to alter the values in that snippet so they match the position you want on your wallpaper (springboard). Did you try to play around with the values?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5  
Old 01-27-2009, 05:16 AM
Green Apple
 
Join Date: Oct 2008
Device + Firmware: iphone 3.0
Operating System: windows xp
Location: The "Rock"land Cty NY
Posts: 73
Thanks: 10
Thanked 7 Times in 6 Posts

ok this is the orignal code with no values... and the widget stays on the left upper corner...i want it on the right side but i cant do it..

<html>
<head>
<script type="text/javascript">
<!--
var image1=new Image()
image1.src="firstimage.jpg"
var image2=new Image()
image2.src="picture2.jpg"
var image3=new Image()
image3.src="picture3.jpg"
var image4=new Image()
image4.src="picture4.jpg"
var image5=new Image()
image5.src="picture5.jpg"
var image6=new Image()
image6.src="picture6.jpg"
var image7=new Image()
image7.src="picture7.jpg"
var image8=new Image()
image8.src="picture8.jpg"
var image9=new Image()
image9.src="picture9.jpg"

//-->
</script>
</head>

<body background="image.png">
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;<img src="firstimage.jpg" name="slide" width="102" height="153" />
<script>
<!--
//variable that will increment through the images
var step=1
function slideit(){
//if browser does not support the image object, exit.
if (!document.images)
return
document.images.slide.src=eval("image"+step+".src" )
if (step<9)
step++
else
step=1
//call function "slideit()" every 2.5 seconds
setTimeout("slideit()",2500)
}
slideit()
//-->
</script>
</body>
</html>
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6  
Old 01-27-2009, 07:49 AM
iPhone? More like MyPhone
 
Join Date: Aug 2008
Posts: 130
Thanks: 20
Thanked 22 Times in 17 Posts

You HAVE to include the table style and coordinates. That is the piece that requires modification. The numbers represent the place they appear on the wallpaper. E.g.:

table style="position: absolute; <-- Absolute indicates it's in a fixed location.
top: -167px; <-- -167 pixels from the top. Note they've used a negative number.
left: 72px; <-- 72 pixels in from the left
width: 320px; <-- 320 pixels wide (the width of the wallpaper)
height: 461px;" <-- 461 pixels tall
cellspacing=""
cellpadding=""
align="center"

The two style elements you need to change are top and left. Play around with the numbers until you get it positioned where you want the object to appear. If you're wanting it to appear on the right side, increase the value of "left" to something like 248.

If you're not comfortable with CSS and styles, I highly recommend checking out this tutorial first: CSS Tutorial

Last edited by dkaye; 01-27-2009 at 07:56 AM.. Reason: Updated.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #7  
Old 01-27-2009, 09:46 AM
Green Apple
 
Join Date: Oct 2008
Device + Firmware: iphone 3.0
Operating System: windows xp
Location: The "Rock"land Cty NY
Posts: 73
Thanks: 10
Thanked 7 Times in 6 Posts

ok..i understand..where do i place the code in the html
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #8  
Old 01-27-2009, 12:38 PM
iPhone? More like MyPhone
 
Join Date: Aug 2008
Posts: 130
Thanks: 20
Thanked 22 Times in 17 Posts

Go back and look at your original post. The code should remain just like it is there. Change the value of "left" to whatever you want it to be - 248 would move it to the right side.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > Design and Media For the iPhone / iPod Touch > Skinning / Themes Discussion

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 07:38 AM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Top