Zen Cart Logo
Forums / General Questions / help needed to edit this simple html code to open in a new window

help needed to edit this simple html code to open in a new window

Locked

Views: 928

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
2 Apr 2010, 2:12 PM
#1
xbox_memberships avatar

xbox_memberships

Zen Follower

Join Date:
Jan 2010
Posts:
157
Plugin Contributions:
0

help needed to edit this simple html code to open in a new window

ok guys just want to change my safe buy window so it pops up in a new window or in a new tab so customers stay on my site and will just have to close the page and my site is there. the code is as below

<a href="https://ratings.safebuy.org.uk/xboxmemberships.co.uk/stats.html"> <script type="text/javascript"> var size = 150; var prefix = location.protocol=="https:" ? "https" : "http"; document.write("<img src='"+prefix+"://ratings.safebuy.org.uk/"); document.write("xboxmemberships.co.uk/stars-"+size+".gif' />"); </script> </a>
2 Apr 2010, 2:37 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: help needed to edit this simple html code to open in a new window

In the purest simplest of HTML, you could simply add target="_blank", like this:

<a href=" ...... stats.html" target="_blank">

There may be other more complicated ways, but that should work.

2 Apr 2010, 2:55 PM
#3
xbox_memberships avatar

xbox_memberships

Zen Follower

Join Date:
Jan 2010
Posts:
157
Plugin Contributions:
0

Re: help needed to edit this simple html code to open in a new window

Thanks alot that works perfectly!

save me making another thread is there an query i could run through the install .sql page to remove any customers without purchases? Just I have implemented telephone verification and The customers with no orders are the ones I have removed the orders on and would like to remove. Id do it manually but theres about 200 that need removing out of 250!!

2 Apr 2010, 3:04 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: help needed to edit this simple html code to open in a new window

Xbox Memberships:

Thanks alot that works perfectly!

save me making another thread is there an query i could run through the install .sql page to remove any customers without purchases? Just I have implemented telephone verification and The customers with no orders are the ones I have removed the orders on and would like to remove. Id do it manually but theres about 200 that need removing out of 250!!
There's not a "quick query" for that. There are at least 3 separate tables involved in the actual data to remove, and the selection criteria is found in yet another table.

If you want to work on building a query for it, it definitely warrants a specific thread for it.

But I suspect you'll have them all deleted by hand before you work out the query details ;)

2 Apr 2010, 3:15 PM
#5
xbox_memberships avatar

xbox_memberships

Zen Follower

Join Date:
Jan 2010
Posts:
157
Plugin Contributions:
0

Re: help needed to edit this simple html code to open in a new window

As you can tell im a complete noob when it comes to these things so i will put up a new thread see if anyone knows a query ie has done it themselves before. :cool: